Question
Hello, I am doing domain randomization on a simple rigid box in Isaac Lab.
My workflow is:
- Randomly shift the object’s COM.
- Recompute the inertia tensor using the parallel-axis theorem.
- The resulting inertia matrix is non-diagonal.
- I apply it with: asset.root_physx_view.set_inertias
- However, I found that all off-diagonal terms are silently discarded, and only the diagonal values remain.
- According to the PhysX documentation, inertias are defined in the rigid body’s COM frame, and in this frame, the inertia of a box should indeed be diagonal.
My question is:
Since the inertia tensor is defined in the COM frame, if I shift the COM, does that mean I don’t need to change the inertia tensor? And is this physically consistent with real-world object dynamics in simulation?
Thanks in advance.
- Isaac Lab Version: [2.2.0]
- Isaac Sim Version: [5.0.0]