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

Method backArmorOffset

source/game/StarNpc.cpp:250–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250Vec2F Npc::backArmorOffset() const {
251 return {m_humanoid.backArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.backArmorOffset()[1]};
252}
253
254Vec2F Npc::legsArmorOffset() const {
255 return {m_humanoid.legsArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.legsArmorOffset()[1]};

Callers

nothing calls this directly

Calls 2

numericalDirectionFunction · 0.85
facingDirectionMethod · 0.45

Tested by

no test coverage detected