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

Method getAbsolutePosition

source/game/StarNpc.cpp:578–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578Vec2F Npc::getAbsolutePosition(Vec2F relativePosition) const {
579 if (m_humanoid.facingDirection() == Direction::Left)
580 relativePosition[0] *= -1;
581 return m_movementController->position() + relativePosition;
582}
583
584void Npc::tickShared(float dt) {
585 if (m_hitDamageNotificationLimiter)

Callers

nothing calls this directly

Calls 2

facingDirectionMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected