| 404 | } |
| 405 | |
| 406 | void Projectile::setReferenceVelocity(Maybe<Vec2F> const& velocity) { |
| 407 | m_movementController->setVelocity(m_movementController->velocity() - m_referenceVelocity.value()); |
| 408 | m_referenceVelocity = velocity; |
| 409 | m_movementController->setVelocity(m_movementController->velocity() + velocity.value()); |
| 410 | m_effectEmitter->setBaseVelocity(velocity.value()); |
| 411 | } |
| 412 | |
| 413 | float Projectile::initialSpeed() const { |
| 414 | return m_initialSpeed; |
no test coverage detected