- Timestamp:
- Mar 11, 2010, 11:34:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/ArtificialController.cc
r6417 r6502 65 65 { 66 66 // Multiply with 0.8 to make them a bit slower 67 this->getControllableEntity()->rotateYaw(-0.8 * sgn(coord.x) * coord.x*coord.x);68 this->getControllableEntity()->rotatePitch(0.8 * sgn(coord.y) * coord.y*coord.y);67 this->getControllableEntity()->rotateYaw(-0.8f * sgn(coord.x) * coord.x*coord.x); 68 this->getControllableEntity()->rotatePitch(0.8f * sgn(coord.y) * coord.y*coord.y); 69 69 } 70 70 71 71 if (this->target_ && distance < 200 && this->getControllableEntity()->getVelocity().squaredLength() > this->target_->getVelocity().squaredLength()) 72 this->getControllableEntity()->moveFrontBack(-0.5 ); // They don't brake with full power to give the player a chance72 this->getControllableEntity()->moveFrontBack(-0.5f); // They don't brake with full power to give the player a chance 73 73 else 74 this->getControllableEntity()->moveFrontBack(0.8 );74 this->getControllableEntity()->moveFrontBack(0.8f); 75 75 } 76 76
Note: See TracChangeset
for help on using the changeset viewer.