#[repr(C)]pub struct b2SensorEndTouchEvent {
pub sensorShapeId: b2ShapeId,
pub visitorShapeId: b2ShapeId,
}Expand description
An end touch event is generated when a shape stops overlapping a sensor shape. These include things like setting the transform, destroying a body or shape, or changing a filter. You will also get an end event if the sensor or visitor are destroyed. Therefore you should always confirm the shape id is valid using b2Shape_IsValid.
Fields§
§sensorShapeId: b2ShapeIdThe id of the sensor shape @warning this shape may have been destroyed @see b2Shape_IsValid
visitorShapeId: b2ShapeIdThe id of the shape that stopped touching the sensor shape @warning this shape may have been destroyed @see b2Shape_IsValid
Trait Implementations§
Source§impl Clone for b2SensorEndTouchEvent
impl Clone for b2SensorEndTouchEvent
Source§fn clone(&self) -> b2SensorEndTouchEvent
fn clone(&self) -> b2SensorEndTouchEvent
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 b2SensorEndTouchEvent
impl Debug for b2SensorEndTouchEvent
impl Copy for b2SensorEndTouchEvent
Auto Trait Implementations§
impl Freeze for b2SensorEndTouchEvent
impl RefUnwindSafe for b2SensorEndTouchEvent
impl Send for b2SensorEndTouchEvent
impl Sync for b2SensorEndTouchEvent
impl Unpin for b2SensorEndTouchEvent
impl UnwindSafe for b2SensorEndTouchEvent
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)