Skip to main content

world_collide_mover

Function world_collide_mover 

Source
pub fn world_collide_mover(
    world: &mut World,
    origin: Pos,
    mover: &Capsule,
    filter: QueryFilter,
    fcn: impl FnMut(ShapeId, &PlaneResult) -> bool,
)
Expand description

Collide a capsule mover with the world, gathering collision planes that can be fed to solve_planes. Useful for character controllers. The callback returns false to terminate the query. (b2World_CollideMover + static TreeCollideCallback)