Release v0.14

This commit is contained in:
Sébastien Crozet
2022-07-09 12:54:51 +02:00
parent 573affd73c
commit ee10a90f9b
11 changed files with 32 additions and 22 deletions

View File

@@ -78,10 +78,20 @@ impl IntoPhysx for Point3<f32> {
}
}
impl IntoPhysx for UnitQuaternion<f32> {
type Output = PxQuat;
fn into_physx(self) -> Self::Output {
PxQuat::new(self.i, self.j, self.k, self.w)
}
}
impl IntoPhysx for Isometry3<f32> {
type Output = PxTransform;
fn into_physx(self) -> Self::Output {
self.into_glam().into()
PxTransform::from_translation_rotation(
&self.translation.vector.into_physx(),
&self.rotation.into_physx(),
)
}
}
@@ -164,7 +174,7 @@ impl PhysxWorld {
gravity: gravity.into_physx(),
thread_count: num_threads as u32,
broad_phase_type: BroadPhaseType::AutomaticBoxPruning,
solver_type: SolverType::PGS,
solver_type: SolverType::Pgs,
friction_type,
ccd_max_passes: integration_parameters.max_ccd_substeps as u32,
..SceneDescriptor::new(())
@@ -361,7 +371,7 @@ impl PhysxWorld {
if rb.is_ccd_enabled() {
physx_sys::PxRigidBody_setRigidBodyFlag_mut(
actor,
RigidBodyFlag::EnableCCD as u32,
RigidBodyFlag::EnableCcd as u32,
true,
);
}