- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpRocket.cc
r10078 r10215 80 80 if(figurePosition.x > rocketPosition.x-width_ && figurePosition.x < rocketPosition.x+width_ && figurePosition.z > rocketPosition.z-height_ && figurePosition.z < rocketPosition.z+height_) 81 81 { 82 82 touchFigure(); 83 83 } 84 84 } 85 85 else if (attachedToFigure_ == true) 86 86 { 87 88 89 90 91 87 fuel_ -= dt; 88 if (fuel_ < 0.0) 89 { 90 figure_->StopRocket(this); 91 } 92 92 } 93 93 } … … 95 95 void JumpRocket::touchFigure() 96 96 { 97 97 JumpItem::touchFigure(); 98 98 99 99 attachedToFigure_ = figure_->StartRocket(this); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.