Answers for "how to get the x axis of an object in unity"

C#
0

make y axis start at 0 python

ax.set_ylim(ymin=0)
Posted by: Guest on April-03-2020
1

unity how to get the side ways velocity of a object

Rigidbody rb = GetComponent<Rigidbody>();
Vector3 worldVelocity = rb.velocity;
Vector3 localVelocity = transform.InverseTransformVector(worldVelocity);
//This gives velocity in all directions sideways is on the x axis the thread gives more info
Posted by: Guest on February-29-2020

Code answers related to "how to get the x axis of an object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language