Answers for "how to keep a rigidbody upright using torque"

C#
0

how to keep a rigidbody upright using torque

var rot = Quaternion.FromToRotation(transform.up, Vector3.up); 
 rb.AddTorque(new Vector3(rot.x, rot.y, rot.z)*uprightTorque);
Posted by: Guest on September-28-2020

Code answers related to "how to keep a rigidbody upright using torque"

C# Answers by Framework

Browse Popular Code Answers by Language