#[repr(C)]pub struct b2SensorEvents {
pub beginEvents: *mut b2SensorBeginTouchEvent,
pub endEvents: *mut b2SensorEndTouchEvent,
pub beginCount: c_int,
pub endCount: c_int,
}Expand description
Sensor events are buffered in the world and are available as begin/end overlap event arrays after the time step is complete. Note: these may become invalid if bodies and/or shapes are destroyed
Fields§
§beginEvents: *mut b2SensorBeginTouchEventArray of sensor begin touch events
endEvents: *mut b2SensorEndTouchEventArray of sensor end touch events
beginCount: c_intThe number of begin touch events
endCount: c_intThe number of end touch events
Trait Implementations§
Source§impl Clone for b2SensorEvents
impl Clone for b2SensorEvents
Source§fn clone(&self) -> b2SensorEvents
fn clone(&self) -> b2SensorEvents
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 b2SensorEvents
impl Debug for b2SensorEvents
impl Copy for b2SensorEvents
Auto Trait Implementations§
impl Freeze for b2SensorEvents
impl RefUnwindSafe for b2SensorEvents
impl !Send for b2SensorEvents
impl !Sync for b2SensorEvents
impl Unpin for b2SensorEvents
impl UnwindSafe for b2SensorEvents
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)