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