fix the parameter used for local center of mass

This commit is contained in:
Turki Jamaan
2022-01-08 20:04:22 +03:00
parent 936f655c67
commit e41fccb9fb

View File

@@ -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));
}