- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpPropeller.cc
r10078 r10215 83 83 if(figurePosition.x > PropellerPosition.x-width_ && figurePosition.x < PropellerPosition.x+width_ && figurePosition.z > PropellerPosition.z-height_ && figurePosition.z < PropellerPosition.z+height_) 84 84 { 85 85 touchFigure(); 86 86 } 87 87 } 88 88 else if (attachedToFigure_ == true) 89 89 { 90 91 92 93 94 90 fuel_ -= dt; 91 if (fuel_ < 0.0) 92 { 93 figure_->StopPropeller(this); 94 } 95 95 } 96 96 } … … 98 98 void JumpPropeller::touchFigure() 99 99 { 100 100 JumpItem::touchFigure(); 101 101 102 103 104 105 106 102 attachedToFigure_ = figure_->StartPropeller(this); 103 if (attachedToFigure_) 104 { 105 setAngularVelocity(Vector3(0,0,10.0)); 106 } 107 107 } 108 108 }
Note: See TracChangeset
for help on using the changeset viewer.