Skip to main content

polytope_body

Function polytope_body 

Source
pub fn polytope_body(
    position: Vec3,
    velocity: Vec3,
    vertices: Vec<Vec3>,
    mass: f32,
) -> Option<BodyDef<EuclideanR3>>
Expand description

Uses a bounding-sphere inertia approximation.