Answers for "unity addtorque"

C#
0

unity addtorque

myRigidbody.AddTorque(transform.up * torque);
//transform.up is the axis it will spin around
//torque is a float value representing the intensity it will spin
Posted by: Guest on July-31-2021

C# Answers by Framework

Browse Popular Code Answers by Language