| 394 | } |
| 395 | |
| 396 | void MovementController::rotate(float rotationRate) { |
| 397 | if (rotationRate == 0.0) |
| 398 | return; |
| 399 | |
| 400 | m_resting = false; |
| 401 | m_rotation.set(fmod(rotation() + rotationRate * m_timeStep, 2 * Constants::pi)); |
| 402 | } |
| 403 | |
| 404 | void MovementController::accelerate(Vec2F const& acceleration) { |
| 405 | setVelocity(velocity() + acceleration * m_timeStep); |
no test coverage detected