I’ve encountered an issue when using the get_measured_joint_forces()
function in a setup with two rigid cubes connected via a fixed joint. The two cubes each have a mass of 1, and one is fixed to the world. Gravity is set to 9.8 m/s².
When I measure the joint forces without GPU simulation, the z-direction force is correctly measured as 9.8 N, which is expected due to gravity. However, after adding a ParticleSystem and switching to GPU computation, the same force measurement returns a value of -1.5258789e-05
instead of 9.8 N. The setup remains identical in both cases except for the inclusion of the ParticleSystem and GPU usage.
Steps to reproduce:
- Create two rigid cubes, each with a mass of 1.
- Fix one cube to the world.
- Connect the two cubes via a fixed joint.
- Use
get_measured_joint_forces()
to measure the joint forces:
- Without GPU computation: z-force is measured as 9.8 N.
- With GPU computation (after adding ParticleSystem): z-force is measured as
-1.5258789e-05
instead of 9.8 N.
Is there an explanation for this discrepancy when using the GPU? Is there something I might be missing in terms of ParticleSystem or joint force measurement compatibility with GPU?
Thank you for your help!