diff options
Diffstat (limited to 'src_testbed/physx_backend.rs')
| -rw-r--r-- | src_testbed/physx_backend.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src_testbed/physx_backend.rs b/src_testbed/physx_backend.rs index 74d6af2..7fcb813 100644 --- a/src_testbed/physx_backend.rs +++ b/src_testbed/physx_backend.rs @@ -154,7 +154,7 @@ impl PhysxWorld { use physx::rigid_static::RigidStatic; use physx::transform; - let pos = transform::gl_to_px_tf(rb.position.to_homogeneous().into_glam()); + let pos = transform::gl_to_px_tf(rb.position().to_homogeneous().into_glam()); if rb.is_dynamic() { let actor = unsafe { physx_sys::PxPhysics_createRigidDynamic_mut(physics.get_raw_mut(), &pos) @@ -406,7 +406,7 @@ impl PhysxWorld { let ra = self.scene.get_rigid_actor(*physx_handle).unwrap(); let pos = ra.get_global_pose().into_na(); let iso = na::convert_unchecked(pos); - rb.set_position(iso); + rb.set_position(iso, false); if rb.is_kinematic() {} |
