- Timestamp:
- Dec 10, 2014, 3:40:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10154 r10166 42 42 RegisterObject(DodgeRaceShip); 43 43 44 speed = 8 00;44 speed = 830; 45 45 isFireing = false; 46 46 damping = 10; … … 68 68 { 69 69 float dist_y = velocity.y * dt; 70 float dist_x = velocity.x * dt;70 //float dist_x = velocity.x * dt; 71 71 if(dist_y + posforeward > -42*3 && dist_y + posforeward < 42*6) 72 72 posforeward += dist_y; … … 75 75 velocity.y = 0; 76 76 // restart if game ended 77 77 /* 78 78 if (getGame()) 79 79 if (getGame()->bEndGame) … … 83 83 }*/ 84 84 } 85 /* 86 if (pos.z + dist_x > 42*2.5 || pos.z + dist_x < -42*3) 87 { 88 velocity.x = 0; 89 } 90 */ 85 91 86 pos += Vector3(1000 + velocity.y, 0, velocity.x) * dt; 92 }93 94 // shoot!95 if (isFireing)96 {97 //pos += Vector3(900, 0, 0) * dt;98 //ControllableEntity::fire(0);99 87 } 100 88 … … 150 138 void DodgeRaceShip::boost(bool bBoost) 151 139 { 152 // isFireing= bBoost;140 //getGame()->bEndGame = bBoost; 153 141 } 154 142 155 143 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 156 144 { 157 /*158 if (otherObject != NULL && lastEntity != otherObject)159 {160 lastEntity = otherObject;161 removeHealth(20);162 }163 */164 145 165 146 removeHealth(100);
Note: See TracChangeset
for help on using the changeset viewer.