rapier.rs icon indicating copy to clipboard operation
rapier.rs copied to clipboard

"Collision groups and solver groups" for bevy plugin is out of date

Open Ultipuk opened this issue 2 years ago • 0 comments

The corresponding section of documentation is provided with out of date examples -- the code just does not compile.

// fails
// CollisionGroups::new(0b1101.into(), 0b0100.into());
// SolverGroups::new(0b0011.into(), 0b1011.into());

// ok
CollisionGroups::new(
    Group::from_bits(0b1101).unwrap(),
    Group::from_bits(0b0100).unwrap(),
);
SolverGroups::new(
    Group::from_bits(0b0011).unwrap(),
    Group::from_bits(0b1011).unwrap(),
);

Ultipuk avatar Oct 28 '23 12:10 Ultipuk