#[repr(C)]pub struct b2ContactEvents {
pub beginEvents: *mut b2ContactBeginTouchEvent,
pub endEvents: *mut b2ContactEndTouchEvent,
pub hitEvents: *mut b2ContactHitEvent,
pub beginCount: c_int,
pub endCount: c_int,
pub hitCount: c_int,
}Expand description
Contact events are buffered in the Box2D world and are available as event arrays after the time step is complete. Note: these may become invalid if bodies and/or shapes are destroyed
Fields§
§beginEvents: *mut b2ContactBeginTouchEventArray of begin touch events
endEvents: *mut b2ContactEndTouchEventArray of end touch events
hitEvents: *mut b2ContactHitEventArray of hit events
beginCount: c_intNumber of begin touch events
endCount: c_intNumber of end touch events
hitCount: c_intNumber of hit events
Trait Implementations§
Source§impl Clone for b2ContactEvents
impl Clone for b2ContactEvents
Source§fn clone(&self) -> b2ContactEvents
fn clone(&self) -> b2ContactEvents
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 b2ContactEvents
impl Debug for b2ContactEvents
impl Copy for b2ContactEvents
Auto Trait Implementations§
impl Freeze for b2ContactEvents
impl RefUnwindSafe for b2ContactEvents
impl !Send for b2ContactEvents
impl !Sync for b2ContactEvents
impl Unpin for b2ContactEvents
impl UnwindSafe for b2ContactEvents
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)