aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/physx_backend.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-03-19 17:52:56 +0100
committerSébastien Crozet <sebastien@crozet.re>2022-03-20 21:49:16 +0100
commit063c638ec5906747e3ca85ee0c5f112c7775f797 (patch)
tree498090f01c8cf8d69a35d03e123a1dfe006c54bf /src_testbed/physx_backend.rs
parenta9e3441ecd64d50b478ab5370fabe187ec9a5c39 (diff)
downloadrapier-063c638ec5906747e3ca85ee0c5f112c7775f797.tar.gz
rapier-063c638ec5906747e3ca85ee0c5f112c7775f797.tar.bz2
rapier-063c638ec5906747e3ca85ee0c5f112c7775f797.zip
Combine contact events and intersection events into a single event type and flags
Diffstat (limited to 'src_testbed/physx_backend.rs')
-rw-r--r--src_testbed/physx_backend.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src_testbed/physx_backend.rs b/src_testbed/physx_backend.rs
index 2d42a68..31326bc 100644
--- a/src_testbed/physx_backend.rs
+++ b/src_testbed/physx_backend.rs
@@ -213,7 +213,7 @@ impl PhysxWorld {
rapier2dynamic.insert(rapier_handle, actor);
} else {
- let actor = physics.create_fixed(pos, ()).unwrap();
+ let actor = physics.create_static(pos, ()).unwrap();
rapier2static.insert(rapier_handle, actor);
}
}
@@ -382,7 +382,7 @@ impl PhysxWorld {
);
for (_, actor) in rapier2static {
- scene.add_fixed_actor(actor);
+ scene.add_static_actor(actor);
}
for (_, actor) in rapier2dynamic {
@@ -712,7 +712,7 @@ type PxPhysicsFoundation = PhysicsFoundation<DefaultAllocator, PxShape>;
type PxMaterial = physx::material::PxMaterial<()>;
type PxShape = physx::shape::PxShape<(), PxMaterial>;
type PxArticulationLink = physx::articulation_link::PxArticulationLink<RigidBodyHandle, PxShape>;
-type PxRigidStatic = physx::rigid_fixed::PxRigidStatic<(), PxShape>;
+type PxRigidStatic = physx::rigid_static::PxRigidStatic<(), PxShape>;
type PxRigidDynamic = physx::rigid_dynamic::PxRigidDynamic<RigidBodyHandle, PxShape>;
type PxArticulation = physx::articulation::PxArticulation<(), PxArticulationLink>;
type PxArticulationReducedCoordinate =