Changeset 10127 for code/branches/surfaceraceHS14/src
- Timestamp:
- Nov 19, 2014, 2:10:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10124 r10127 96 96 { 97 97 camera->setPosition(Vector3(-pos.z, -posforeward, 0)); 98 camera->setOrientation(Vector3::UNIT_Z, Degree( 90));98 camera->setOrientation(Vector3::UNIT_Z, Degree(0)); 99 99 } 100 100 … … 127 127 void DodgeRaceShip::moveFrontBack(const Vector2& value) 128 128 { 129 lastTimeLeft = 0; 130 desiredVelocity.x = -value.x * speed; 129 //lastTimeFront = 0; 130 //desiredVelocity.y = value.y * speed * 42; 131 131 132 } 132 133 133 134 void DodgeRaceShip::moveRightLeft(const Vector2& value) 134 135 { 135 lastTimeFront = 0;136 desiredVelocity.y = value.y * speed * 42;136 lastTimeLeft = 0; 137 desiredVelocity.x = -value.x * speed; 137 138 } 138 139 void DodgeRaceShip::boost(bool bBoost)
Note: See TracChangeset
for help on using the changeset viewer.