Answers for "check velocity is forwards or backwards + unity"

C#
0

check velocity is forwards or backwards + unity

//moving forwards
Mathf.Abs(localVelocity.z) > 0.01f
//moving backwards
Mathf.Abs(localVelocity.z) < 0.01f
Posted by: Guest on July-15-2020

Code answers related to "check velocity is forwards or backwards + unity"

C# Answers by Framework

Browse Popular Code Answers by Language