dimforge / ncollide

2 and 3-dimensional collision detection library in Rust.
https://ncollide.org
Apache License 2.0
921 stars 105 forks source link

Provide a mask based API for Collision groups #330

Closed jannickj closed 4 years ago

jannickj commented 4 years ago

Currently the API for collision groups is arrays of bit indexes, however that makes it rather cumbersome for building objects, because now you have to carry around references to arrays that you have to loop through instead of just being able to provide it with a mask.

I understand the wish to provide a high level API but it could be really nice to also have a low level API for us that just want something simple.

jannickj commented 4 years ago

I created a pr with the change I had in mind: https://github.com/rustsim/ncollide/pull/331

ColonelThirtyTwo commented 4 years ago

Pretty sure this is merged now, and can be closed. https://docs.rs/ncollide3d/0.23.2/ncollide3d/pipeline/object/struct.CollisionGroups.html#method.add_blacklist_by_mask