rapier.rs
rapier.rs copied to clipboard
"Collision groups and solver groups" for bevy plugin is out of date
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(),
);