ncollide3d::procedural

Function unit_cuboid

Source
pub fn unit_cuboid<N: RealField + Copy>() -> TriMesh<N>
Expand description

Generates a cuboid shape with a split index buffer.

The cuboid is centered at the origin, and has its half extents set to 0.5.