aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/physx_backend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src_testbed/physx_backend.rs')
-rw-r--r--src_testbed/physx_backend.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src_testbed/physx_backend.rs b/src_testbed/physx_backend.rs
index 66036c8..b06fd7e 100644
--- a/src_testbed/physx_backend.rs
+++ b/src_testbed/physx_backend.rs
@@ -228,7 +228,7 @@ impl PhysxWorld {
// Update mass properties.
for (rapier_handle, physx_handle) in rapier2physx.iter() {
let rb = &bodies[*rapier_handle];
- if let Some(mut ra) = scene.get_dynamic_mut(*physx_handle) {
+ if let Some(rp) = scene.get_dynamic_mut(*physx_handle) {
let densities: Vec<_> = rb
.colliders()
.iter()
@@ -237,7 +237,7 @@ impl PhysxWorld {
unsafe {
physx_sys::PxRigidBodyExt_updateMassAndInertia_mut(
- ra.as_ptr_mut().ptr as *mut physx_sys::PxRigidBody,
+ rp.as_ptr_mut().ptr as *mut physx_sys::PxRigidBody,
densities.as_ptr(),
densities.len() as u32,
std::ptr::null(),