Skip to main content

solve_planes

Function solve_planes 

Source
pub fn solve_planes(
    target_delta: Vec2,
    planes: &mut [CollisionPlane],
) -> PlaneSolverResult
Expand description

Solves the position of a mover that satisfies the given collision planes.

target_delta is the desired movement from the position used to generate the collision planes. (b2SolvePlanes)