pub struct LayerMask {
pub memberships: u32,
pub filter: u32,
}Expand description
Membership and filter bits applied to a collider or query.
Two colliders interact only when each one’s memberships intersect the other’s filter, so a one-way filter still blocks the pair.
Fields§
§memberships: u32Layers this collider or query belongs to.
filter: u32Layers this collider or query interacts with.
Implementations§
Trait Implementations§
impl Copy for LayerMask
impl Eq for LayerMask
impl StructuralPartialEq for LayerMask
Auto Trait Implementations§
impl Freeze for LayerMask
impl RefUnwindSafe for LayerMask
impl Send for LayerMask
impl Sync for LayerMask
impl Unpin for LayerMask
impl UnsafeUnpin for LayerMask
impl UnwindSafe for LayerMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.