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

Method velocity

source/game/StarNpc.cpp:993–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993Vec2F Npc::velocity() const {
994 return m_movementController->velocity();
995}
996
997Vec2F Npc::aimPosition() const {
998 return world()->geometry().xwrap(Vec2F(m_xAimPosition.get(), m_yAimPosition.get()) + position());

Callers 5

moveMethod · 0.45
renderMethod · 0.45
entityVelocityMethod · 0.45
updateRunningMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected