feat: migrate to glam whenever relevant + migrate testbed to kiss3d instead of bevy + release v0.32.0 (#909)

* feat: migrate to glam whenever relevant + migrate testbed to kiss3d instead of bevy

* chore: update changelog

* Fix warnings and tests

* Release v0.32.0
This commit is contained in:
Sébastien Crozet
2026-01-09 17:26:36 +01:00
committed by GitHub
parent 48de83817e
commit 0b7c3b34ec
265 changed files with 8501 additions and 8575 deletions

View File

@@ -10,7 +10,6 @@ use rapier::dynamics::{
RigidBodySet,
};
use rapier::geometry::{BroadPhaseBvh, BvhOptimizationStrategy, ColliderSet, NarrowPhase};
use rapier::math::{Real, Vector};
use rapier::pipeline::{ChannelEventCollector, PhysicsHooks, PhysicsPipeline};
pub mod plugin;
@@ -184,7 +183,7 @@ impl Harness {
impulse_joints,
multibody_joints,
broad_phase_type,
Vector::y() * -9.81,
rapier::math::Vector::Y * -9.81,
(),
)
}
@@ -196,11 +195,9 @@ impl Harness {
impulse_joints: ImpulseJointSet,
multibody_joints: MultibodyJointSet,
broad_phase_type: RapierBroadPhaseType,
gravity: Vector<Real>,
gravity: rapier::math::Vector,
hooks: impl PhysicsHooks + 'static,
) {
// println!("Num bodies: {}", bodies.len());
// println!("Num impulse_joints: {}", impulse_joints.len());
self.physics.gravity = gravity;
self.physics.bodies = bodies;
self.physics.colliders = colliders;
@@ -243,7 +240,7 @@ impl Harness {
let event_handler = &self.event_handler;
self.state.thread_pool.install(|| {
physics.pipeline.step(
&physics.gravity,
physics.gravity,
&physics.integration_parameters,
&mut physics.islands,
&mut physics.broad_phase,
@@ -261,7 +258,7 @@ impl Harness {
#[cfg(not(feature = "parallel"))]
self.physics.pipeline.step(
&self.physics.gravity,
self.physics.gravity,
&self.physics.integration_parameters,
&mut self.physics.islands,
&mut self.physics.broad_phase,