pub struct ColliderFlags {
pub solid: bool,
pub one_way: bool,
pub sensor: bool,
}Expand description
How a collider behaves during a sweep.
Fields§
§solid: boolParticipates in solid collision response. A collider that is not solid is skipped entirely by the sweep.
one_way: boolOne-way platform: passable except when landing on the face that points along the world’s up axis.
sensor: boolSensor: never blocks, whatever solid says. Callers detect sensors by
querying the set themselves.
Implementations§
Source§impl ColliderFlags
impl ColliderFlags
Trait Implementations§
Source§impl Clone for ColliderFlags
impl Clone for ColliderFlags
impl Copy for ColliderFlags
Source§impl Debug for ColliderFlags
impl Debug for ColliderFlags
impl Eq for ColliderFlags
Source§impl PartialEq for ColliderFlags
impl PartialEq for ColliderFlags
impl StructuralPartialEq for ColliderFlags
Auto Trait Implementations§
impl Freeze for ColliderFlags
impl RefUnwindSafe for ColliderFlags
impl Send for ColliderFlags
impl Sync for ColliderFlags
impl Unpin for ColliderFlags
impl UnsafeUnpin for ColliderFlags
impl UnwindSafe for ColliderFlags
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