Aaron Franke
I am working on a standard for specifying parameters for rigid body physics. This standard needs to support multiple physics engines. I already have parameters for the body's mass, linear velocity, and angular velocity. I need to add a new parameter for the inertia tensor, which describes the body's resistance to be rotated in different directions. The problem is that some physics engines implement the inertia tensor as a 3x3 matrix, and some physics engines implement inertia as a Vector3. I am thinking that I should specify the parameter as a 3x3 matrix, and include algorithms to convert to and from Vector3 inertia to support those physics engines that use Vector3 inertia. What is the formula to do this? Also, can you evaluate if my approach is portable?
ChatGPT
Your approach of specifying the inertia tensor as a 3x3 matrix and including algorithms to convert to and from Vector3 inertia is a good way to handle the variability in how different physics engines implement inertia. To convert be