Skip to main content

destroy_sensor

Function destroy_sensor 

Source
pub fn destroy_sensor(world: &mut World, sensor_shape_id: i32)
Expand description

Destroy the sensor record for a sensor shape, emitting end-touch events for its active overlaps. (b2DestroySensor — C takes the shape pointer; the Rust port takes the shape id.)