diff options
Diffstat (limited to 'src_testbed/physx_backend.rs')
| -rw-r--r-- | src_testbed/physx_backend.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src_testbed/physx_backend.rs b/src_testbed/physx_backend.rs index 827c81d..2d42a68 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_static(pos, ()).unwrap(); + let actor = physics.create_fixed(pos, ()).unwrap(); rapier2static.insert(rapier_handle, actor); } } @@ -231,7 +231,7 @@ impl PhysxWorld { let rb_handle = link.rigid_body_handle(); let rb = bodies.get(rb_handle).unwrap(); - if is_root && rb.is_static() { + if is_root && rb.is_fixed() { articulation.set_articulation_flag(ArticulationFlag::FixBase, true); } @@ -382,7 +382,7 @@ impl PhysxWorld { ); for (_, actor) in rapier2static { - scene.add_static_actor(actor); + scene.add_fixed_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_static::PxRigidStatic<(), PxShape>; +type PxRigidStatic = physx::rigid_fixed::PxRigidStatic<(), PxShape>; type PxRigidDynamic = physx::rigid_dynamic::PxRigidDynamic<RigidBodyHandle, PxShape>; type PxArticulation = physx::articulation::PxArticulation<(), PxArticulationLink>; type PxArticulationReducedCoordinate = |
