Vector3.Angle only returns a static value, Help
I am making a 2D platformer game which uses missles that has a proportional navigation homing system.(https://en.wikipedia.org/wiki/Proportional_navigation) This is part of my code which does not work
Vector3 direction = target.transform.position - transform.position; float angle = Vector3.Angle(direction, transform.forward);
target being the target for the missile Using Debug.Log(angle, gameObject); the vector3 angle function only returns 90. Any answers to this question will be appreciated
Comment