MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / accelerate

Method accelerate

source/game/StarMovementController.cpp:404–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void MovementController::accelerate(Vec2F const& acceleration) {
405 setVelocity(velocity() + acceleration * m_timeStep);
406}
407
408void MovementController::force(Vec2F const& force) {
409 setVelocity(velocity() + force / mass() * m_timeStep);

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected