I have fixed object, around its an object is moving in circular shape. Now i am willing to get my moving object angle with respect to fixed boject like form 0 to 360. How can i do this.
i tried this code snippet
Vector3 targetDirection = camHead.transform.position - transform.position; angle = Vector3.Angle(targetDirection, transform.forward);
But it is not giving what i need. Sorry i am null in vector math and trigonometry, a trick will be prefer with explanation.