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

Method legsArmorOffset

source/game/StarNpc.cpp:254–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254Vec2F Npc::legsArmorOffset() const {
255 return {m_humanoid.legsArmorOffset()[0] * numericalDirection(m_humanoid.facingDirection()), m_humanoid.legsArmorOffset()[1]};
256}
257
258RectF Npc::collisionArea() const {
259 return m_movementController->collisionPoly().boundBox();

Callers

nothing calls this directly

Calls 2

numericalDirectionFunction · 0.85
facingDirectionMethod · 0.45

Tested by

no test coverage detected