Skip to main content

polytope_body_r4

Function polytope_body_r4 

Source
pub fn polytope_body_r4(
    position: Vec4,
    velocity: Vec4,
    vertices: Vec<Vec4>,
    mass: f32,
) -> Option<BodyDef<EuclideanR4>>
Expand description

Uses a bounding-ball inertia approximation.