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

Method feetOffset

source/game/StarNpc.cpp:238–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238Vec2F Npc::feetOffset() const {
239 return {m_humanoid.feetOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.feetOffset()[1]};
240}
241
242Vec2F Npc::headArmorOffset() const {
243 return {m_humanoid.headArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.headArmorOffset()[1]};

Callers 4

spawnNpcMethod · 0.45
setTemplateMethod · 0.45
playerRevivePositionMethod · 0.45
setPlayerStartMethod · 0.45

Calls 2

numericalDirectionFunction · 0.85
facingDirectionMethod · 0.45

Tested by

no test coverage detected