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

Method chestArmorOffset

source/game/StarNpc.cpp:246–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246Vec2F Npc::chestArmorOffset() const {
247 return {m_humanoid.chestArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.chestArmorOffset()[1]};
248}
249
250Vec2F Npc::backArmorOffset() const {
251 return {m_humanoid.backArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.backArmorOffset()[1]};

Callers

nothing calls this directly

Calls 2

numericalDirectionFunction · 0.85
facingDirectionMethod · 0.45

Tested by

no test coverage detected