feat: add the DefaultBroadPhase type alias

This commit is contained in:
Sébastien Crozet
2024-03-23 14:47:05 +01:00
committed by Sébastien Crozet
parent 3d112287b9
commit b3a00b4123
7 changed files with 17 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ use rapier::dynamics::{
CCDSolver, ImpulseJointSet, IntegrationParameters, IslandManager, MultibodyJointSet,
RigidBodySet,
};
use rapier::geometry::{BroadPhaseMultiSap, ColliderSet, NarrowPhase};
use rapier::geometry::{ColliderSet, DefaultBroadPhase, NarrowPhase};
use rapier::math::{Real, Vector};
use rapier::pipeline::{ChannelEventCollector, PhysicsHooks, PhysicsPipeline, QueryPipeline};
@@ -179,7 +179,7 @@ impl Harness {
self.physics.hooks = Box::new(hooks);
self.physics.islands = IslandManager::new();
self.physics.broad_phase = BroadPhaseMultiSap::new();
self.physics.broad_phase = DefaultBroadPhase::new();
self.physics.narrow_phase = NarrowPhase::new();
self.state.timestep_id = 0;
self.state.time = 0.0;