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

Method headArmorOffset

source/game/StarNpc.cpp:242–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242Vec2F Npc::headArmorOffset() const {
243 return {m_humanoid.headArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.headArmorOffset()[1]};
244}
245
246Vec2F Npc::chestArmorOffset() const {
247 return {m_humanoid.chestArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.chestArmorOffset()[1]};

Callers

nothing calls this directly

Calls 2

numericalDirectionFunction · 0.85
facingDirectionMethod · 0.45

Tested by

no test coverage detected