solvePlanes

expect fun solvePlanes(targetDelta: Vec2, planes: List<CollisionPlane>): PlaneSolverResult

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

Return

The solver result with translation and iteration count

Parameters

targetDelta

The desired movement from the position used to generate the collision planes

planes

The collision planes (the solver may update the push field)