1 2 3 4 5 6 7 8 9 10
use parry3d::math::Vector; use parry3d::shape::HalfSpace; fn main() { let halfspace = HalfSpace::new(Vector::Y); assert!(halfspace.normal.x == 0.0); assert!(halfspace.normal.y == 1.0); assert!(halfspace.normal.z == 0.0); }