| 1454 | } |
| 1455 | |
| 1456 | bool PathController::movingCollision(ActorMovementController& movementController, PolyF const& collisionPoly) { |
| 1457 | bool collided = false; |
| 1458 | movementController.forEachMovingCollision(collisionPoly.boundBox(), [&](MovingCollisionId, PhysicsMovingCollision, PolyF poly, RectF) { |
| 1459 | if (poly.intersects(collisionPoly)) { |
| 1460 | // set collided and stop iterating |
| 1461 | collided = true; |
| 1462 | return false; |
| 1463 | } |
| 1464 | return true; |
| 1465 | }); |
| 1466 | return collided; |
| 1467 | } |
| 1468 | |
| 1469 | bool PathController::onGround(ActorMovementController const& movementController, Vec2F const& position, CollisionSet const& collisionSet) const { |
| 1470 | auto bounds = RectI::integral(movementController.localBoundBox().translated(position)); |
nothing calls this directly
no test coverage detected