Struct libliquidfun_sys::box2d::ffi::b2Filter
source · #[repr(C)]pub struct b2Filter {
pub categoryBits: uint16,
pub maskBits: uint16,
pub groupIndex: int16,
}Expand description
This holds contact filtering data.
Fields§
§categoryBits: uint16The collision category bits. Normally you would just set one bit.
maskBits: uint16The collision mask bits. This states the categories that this shape would accept for collision.
groupIndex: int16Collision groups allow a certain group of objects to never collide (negative) or always collide (positive). Zero means no collision group. Non-zero group filtering always wins against the mask bits.
Implementations§
Trait Implementations§
source§impl ExternType for b2Filter
impl ExternType for b2Filter
source§impl MakeCppStorage for b2Filter
impl MakeCppStorage for b2Filter
impl UniquePtrTarget for b2Filter
impl VectorElement for b2Filter
impl WeakPtrTarget for b2Filter
Auto Trait Implementations§
impl RefUnwindSafe for b2Filter
impl Send for b2Filter
impl Sync for b2Filter
impl Unpin for b2Filter
impl UnwindSafe for b2Filter
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