aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTurki Jamaan <22967219+tjamaan@users.noreply.github.com>2022-01-08 20:04:22 +0300
committerTurki Jamaan <22967219+tjamaan@users.noreply.github.com>2022-01-08 20:04:22 +0300
commite41fccb9fb0069c8083f34b488f35242e453307e (patch)
tree77ca957841398b5574bd42c4f1b4fc13b800708a /src
parent936f655c67f03d6eae6c2c9fc2ad0647b54d74b7 (diff)
downloadrapier-e41fccb9fb0069c8083f34b488f35242e453307e.tar.gz
rapier-e41fccb9fb0069c8083f34b488f35242e453307e.tar.bz2
rapier-e41fccb9fb0069c8083f34b488f35242e453307e.zip
fix the parameter used for local center of mass
Diffstat (limited to 'src')
-rw-r--r--src/pipeline/physics_pipeline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs
index 4ba8bfa..89113a8 100644
--- a/src/pipeline/physics_pipeline.rs
+++ b/src/pipeline/physics_pipeline.rs
@@ -462,7 +462,7 @@ impl PhysicsPipeline {
&rb_pos.position,
// NOTE: we don't use the `world_com` here because it is not
// really updated for kinematic bodies.
- &(rb_pos.position * rb_mprops.local_mprops.local_com),
+ &rb_mprops.local_mprops.local_com,
);
bodies.set_internal(handle.0, RigidBodyPosition::from(new_pos));
}