pub enum Blocker {
Box {
center: Vec3,
half: Vec3,
rotation: Quat,
},
Sphere {
center: Vec3,
radius: f32,
},
Plane {
normal: Vec3,
offset: f32,
},
}Expand description
A small built-in adapter for authored environments. Box sweeps inflate the local box by radius and are conservative at corners; physics adapters may provide exact rounded-box/primitive sphere sweeps through CollisionQuery.
Variants§
Implementations§
Trait Implementations§
impl Copy for Blocker
impl StructuralPartialEq for Blocker
Auto Trait Implementations§
impl Freeze for Blocker
impl RefUnwindSafe for Blocker
impl Send for Blocker
impl Sync for Blocker
impl Unpin for Blocker
impl UnwindSafe for Blocker
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