Skip to main content

get_shape_index

Function get_shape_index 

Source
pub fn get_shape_index(world: &World, shape_id: ShapeId) -> i32
Expand description

Validate a ShapeId and return the raw shape index. (b2GetShape — C returns a pointer; Rust returns the index into world.shapes)