#[repr(C)]pub struct b2QueryFilter {
pub categoryBits: u64,
pub maskBits: u64,
}Expand description
The query filter is used to filter collisions between queries and shapes. For example, you may want a ray-cast representing a projectile to hit players and the static environment but not debris. @ingroup shape
Fields§
§categoryBits: u64The collision category bits of this query. Normally you would just set one bit.
maskBits: u64The collision mask bits. This states the shape categories that this query would accept for collision.
Trait Implementations§
Source§impl Clone for b2QueryFilter
impl Clone for b2QueryFilter
Source§fn clone(&self) -> b2QueryFilter
fn clone(&self) -> b2QueryFilter
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2QueryFilter
impl Debug for b2QueryFilter
impl Copy for b2QueryFilter
Auto Trait Implementations§
impl Freeze for b2QueryFilter
impl RefUnwindSafe for b2QueryFilter
impl Send for b2QueryFilter
impl Sync for b2QueryFilter
impl Unpin for b2QueryFilter
impl UnwindSafe for b2QueryFilter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)