- Home /
using inertia tensor vector instead of inertia matrix
I want to implement tire physics according to the content of this session.
https://www.gdcvault.com/play/1026468/Vehicle-Physics-and-Tire-Dynamics
I have a question in the lateral clamp section on page 24.
vector inertia_force_rotation_axis_vector = vehicle_inertia_matrix * force_rotation_axis;
As far as I can see, Unity can get Inertia Tensor (Vector3) and Inertia Tensor Rotation (Quaternion), but I don't know how to make it into code instead of using InertiaMatrix.
Sorry for google translated english.
Answer by Edy · Feb 09, 2021 at 09:28 AM
Here's the method for converting an inertia matrix into vector and rotation:
http://answers.unity.com/answers/1716025/view.html
The other way around, getting the inertia matrix out of the vector and rotation, is yet to be found:
https://forum.unity.com/threads/inertia-tensor-in-matrix-form-from-inertiatensor-and-inertiatensorrotation.940377/
Thank you .I think its hard for me, but I'll try it.
Your answer
Follow this Question
Related Questions
Re-Creating Unity's Friction and Bounce 0 Answers
Friction in unity? 2 Answers
Get result (force & torque) of AddForceAtPosition? 2 Answers
Gravity and rotation control 0 Answers