pub fn get_chain_index(world: &World, chain_id: ChainId) -> i32
Validate a ChainId and return the raw chain index. (static b2GetChainShape — C returns a pointer; Rust returns the index into world.chain_shapes)
world.chain_shapes