Hi guys. I want to know how to get velocity of an object and also I want to put a vector to my car and this vector must look at to the forward. Then I need to get angle between the vector I put and velocity of car(vector). Is it possible?
If the object has a rigidbody attached to it, you can get the rigidbody through rigidbody.velocity.
If you want to know the car’s forward direction, you can use it’s transform.forward.
The angle between two direction vectors can be obtained with Vector3.Angle
There are also 2D versions of most of these.
I am not sure if this fully answers your question, but I hope it helps!