- Timestamp:
- Nov 26, 2014, 3:59:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10128 r10135 42 42 RegisterObject(DodgeRaceShip); 43 43 44 speed = 500;44 speed = 800; 45 45 isFireing = false; 46 46 damping = 10; … … 82 82 } 83 83 } 84 /* 84 85 if (pos.z + dist_x > 42*2.5 || pos.z + dist_x < -42*3) 85 velocity.x = 0; 86 { 87 velocity.x = 0; 88 } 89 */ 86 90 pos += Vector3(1000 + velocity.y, 0, velocity.x) * dt; 87 91 } … … 99 103 if (camera != NULL) 100 104 { 101 camera->setPosition(Vector3(-pos.z, -posforeward, 0));105 // camera->setPosition(Vector3(-pos.z, -posforeward, 0)); 102 106 camera->setOrientation(Vector3::UNIT_Z, Degree(0)); 103 107 } … … 145 149 void DodgeRaceShip::boost(bool bBoost) 146 150 { 147 isFireing = bBoost;151 //isFireing = bBoost; 148 152 } 149 153 150 154 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 151 155 { 156 /* 152 157 if (otherObject != NULL && lastEntity != otherObject) 153 158 { 154 159 lastEntity = otherObject; 155 160 removeHealth(20); 156 //this->death();157 161 } 162 */ 158 163 164 165 this->death(); 159 166 return false; 160 167 }
Note: See TracChangeset
for help on using the changeset viewer.