- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpSpring.cc
r10078 r10215 74 74 if (stretch_ > 1.0) 75 75 { 76 77 76 stretch_ -= dt; 77 setScale3D(1.0, 1.0, stretch_); 78 78 } 79 79 … … 87 87 if(figureVelocity.z < 0 && figurePosition.x > springPosition.x-width_ && figurePosition.x < springPosition.x+width_ && figurePosition.z > springPosition.z-height_ && figurePosition.z < springPosition.z+height_) 88 88 { 89 89 touchFigure(); 90 90 } 91 91 } … … 94 94 void JumpSpring::touchFigure() 95 95 { 96 96 JumpItem::touchFigure(); 97 97 98 98 stretch_ = 3.0; 99 99 100 100 accelerateFigure(); 101 101 } 102 102 103 103 void JumpSpring::accelerateFigure() 104 104 { 105 106 107 108 105 if (figure_ != 0) 106 { 107 figure_->JumpFromSpring(this); 108 } 109 109 } 110 110 }
Note: See TracChangeset
for help on using the changeset viewer.