#[repr(C)]pub struct b3SensorEndTouchEvent {
pub sensorShapeId: b3ShapeId,
pub visitorShapeId: b3ShapeId,
}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 b3Shape_IsValid.
Fields§
§sensorShapeId: b3ShapeIdThe id of the sensor shape @warning this shape may have been destroyed @see b3Shape_IsValid
visitorShapeId: b3ShapeIdThe id of the shape that stopped touching the sensor shape @warning this shape may have been destroyed @see b3Shape_IsValid
Trait Implementations§
Source§impl Clone for b3SensorEndTouchEvent
impl Clone for b3SensorEndTouchEvent
Source§fn clone(&self) -> b3SensorEndTouchEvent
fn clone(&self) -> b3SensorEndTouchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3SensorEndTouchEvent
Auto Trait Implementations§
impl Freeze for b3SensorEndTouchEvent
impl RefUnwindSafe for b3SensorEndTouchEvent
impl Send for b3SensorEndTouchEvent
impl Sync for b3SensorEndTouchEvent
impl Unpin for b3SensorEndTouchEvent
impl UnsafeUnpin for b3SensorEndTouchEvent
impl UnwindSafe for b3SensorEndTouchEvent
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