Hello,
I have a rigidbody that I can move by adding a force. My question is how can i dtermine the angle at which the object is moving?
Here is a picture I have made to demonstrate this:
[18951-unity+angle+image.jpg|18951]
Hello,
I have a rigidbody that I can move by adding a force. My question is how can i dtermine the angle at which the object is moving?
Here is a picture I have made to demonstrate this:
[18951-unity+angle+image.jpg|18951]
Use Vector3.Angle(fromVector3, ToVector3) for 3d
use Vector2.Angle(fromVector2, ToVector2) for 2d