Skip to main content

shape_get_sensor_data

Function shape_get_sensor_data 

Source
pub fn shape_get_sensor_data(
    world: &World,
    shape_id: ShapeId,
    capacity: usize,
) -> Vec<ShapeId>
Expand description

Get the overlapped shapes for a sensor shape. Overlaps may contain destroyed shapes, so use shape_is_valid to confirm each overlap. (b2Shape_GetSensorData — returns a Vec instead of filling a caller array)