dimforge / rapier.rs

Official website for the Rapier physics engine.
https://rapier.rs
17 stars 48 forks source link

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

Closed Breadp4ck closed 1 month ago

Breadp4ck commented 8 months ago

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(),
);
Vrixyz commented 1 month ago

Thanks, I'm tackling that in the scope of https://github.com/dimforge/rapier.rs/pull/99

Vrixyz commented 1 month ago

Thank again :) ; I'm closing this as it was merged ; it will be part of next website deployment (no planned date)