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

Method queryHit

source/game/StarVehicle.cpp:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161Maybe<HitType> Vehicle::queryHit(DamageSource const& source) const {
162 if (source.intersectsWithPoly(world()->geometry(), m_movementController.collisionBody()))
163 return HitType::Hit;
164
165 return {};
166}
167
168Maybe<PolyF> Vehicle::hitPoly() const {
169 return m_movementController.collisionBody();

Callers

nothing calls this directly

Calls 3

intersectsWithPolyMethod · 0.80
geometryMethod · 0.45
collisionBodyMethod · 0.45

Tested by

no test coverage detected