Torque math: worldToLocalAngles and inertia
🌙 Lua•Updated 2 days ago•0 views
Use v:worldToLocalAngles(desiredAng)*speed - v:angVelocity()*damping, scaled by the physics object's inertia angles - convert desired world torque into local sp…
Correct formula for applyAngForce with inertia
Use v:worldToLocalAngles(desiredAng)*speed - v:angVelocity()*damping, scaled by the physics object's inertia angles - convert desired world torque into local space first.