Skip to main content

clip_vector

Function clip_vector 

Source
pub fn clip_vector(vector: Vec2, planes: &[CollisionPlane]) -> Vec2
Expand description

Clips the velocity against the given planes so the mover doesn’t keep pushing into what it already touched. (b2ClipVector)