1use parry3d::math::Vector; 2use parry3d::shape::Cuboid; 3 4fn main() { 5 let cuboid = Cuboid::new(Vector::new(2.0f32, 1.0, 3.0)); 6 7 assert!(cuboid.half_extents.x == 2.0); 8 assert!(cuboid.half_extents.y == 1.0); 9 assert!(cuboid.half_extents.z == 3.0); 10}