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

Method validPosition

source/game/StarPlatformerAStar.cpp:454–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452 }
453
454 bool PathFinder::validPosition(Vec2F pos, BoundBoxKind boundKind) const {
455 return !m_world->rectTileCollision(RectI::integral(boundBox(pos, boundKind)), CollisionSolid);
456 }
457
458 bool PathFinder::onGround(Vec2F pos, BoundBoxKind boundKind) const {
459 auto groundRect = groundCollisionRect(pos, boundKind);

Callers

nothing calls this directly

Calls 1

rectTileCollisionMethod · 0.45

Tested by

no test coverage detected