pub enum ObstacleShape {
Box {
half: Vec3,
},
Ball {
radius: f32,
},
Capsule {
a: Vec3,
b: Vec3,
radius: f32,
},
Cylinder {
half_height: f32,
radius: f32,
},
Plane {
normal: Vec3,
},
}Variants§
Trait Implementations§
Source§impl Clone for ObstacleShape
impl Clone for ObstacleShape
Source§fn clone(&self) -> ObstacleShape
fn clone(&self) -> ObstacleShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObstacleShape
impl Debug for ObstacleShape
impl Copy for ObstacleShape
Auto Trait Implementations§
impl Freeze for ObstacleShape
impl RefUnwindSafe for ObstacleShape
impl Send for ObstacleShape
impl Sync for ObstacleShape
impl Unpin for ObstacleShape
impl UnwindSafe for ObstacleShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more