pub enum ObstacleData {
Cylinder {
pos: [f32; 3],
radius: f32,
height: f32,
},
Box {
bmin: [f32; 3],
bmax: [f32; 3],
},
OrientedBox {
center: [f32; 3],
half_extents: [f32; 3],
rot_aux: [f32; 2],
},
}Expand description
Obstacle data for different types
Variants§
Cylinder
Cylinder obstacle
Box
Axis-aligned box obstacle
OrientedBox
Oriented box obstacle (rotated in Y axis)
Trait Implementations§
Source§impl Clone for ObstacleData
impl Clone for ObstacleData
Source§fn clone(&self) -> ObstacleData
fn clone(&self) -> ObstacleData
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 moreAuto Trait Implementations§
impl Freeze for ObstacleData
impl RefUnwindSafe for ObstacleData
impl Send for ObstacleData
impl Sync for ObstacleData
impl Unpin for ObstacleData
impl UnsafeUnpin for ObstacleData
impl UnwindSafe for ObstacleData
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