feat: reduce the amount of duplicate work the broad-phase is doing for user changes and CCD + release v0.28.0 (#872)
* feat: reduce the amount of duplicate work the broad-phase is doing for user changes and CCD * Release v0.28.0 * chore: fix warnings * chore: clippy fixes * chore: more clippy fixes
This commit is contained in:
@@ -12,7 +12,7 @@ simd-nightly = ["rapier3d-f64/simd-nightly"]
|
||||
enhanced-determinism = ["rapier3d-f64/enhanced-determinism"]
|
||||
|
||||
[dependencies]
|
||||
rand = "0.8"
|
||||
rand = "0.9"
|
||||
getrandom = { version = "0.2", features = ["js"] }
|
||||
wasm-bindgen = "0.2"
|
||||
obj-rs = { version = "0.7", default-features = false }
|
||||
|
||||
@@ -27,7 +27,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
state.multibody_joints,
|
||||
);
|
||||
testbed.harness_mut().physics.islands = state.islands;
|
||||
testbed.harness_mut().physics.broad_phase = Box::new(state.broad_phase);
|
||||
testbed.harness_mut().physics.broad_phase = state.broad_phase;
|
||||
testbed.harness_mut().physics.narrow_phase = state.narrow_phase;
|
||||
testbed.harness_mut().physics.ccd_solver = state.ccd_solver;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user