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

Method setInitialPosition

source/game/StarProjectile.cpp:421–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421void Projectile::setInitialPosition(Vec2F const& position) {
422 m_movementController->setPosition(position);
423}
424
425void Projectile::setInitialDirection(Vec2F const& direction) {
426 m_movementController->setVelocity(vnorm(direction) * m_initialSpeed + m_referenceVelocity.value());

Callers 5

processActionMethod · 0.80
reloadPlayerMethod · 0.80
fireTriggeredMethod · 0.80
spawnProjectileMethod · 0.80

Calls 1

setPositionMethod · 0.45

Tested by

no test coverage detected