Hi Everyone , i’m making a game in which there might be some sort oflying monsters , right now i’m moving it using nav mesh and using parenting to let them stay off the ground.
When it approaches the player it will start orbiting around , to do so like in the title i used rotateAround like this :
agent.transform.RotateAround (player.transform.position, Vector3.up, Time.deltaTime*25f);
agent.transform.LookAt(player.transform);
is there any way of controlling the direction of the rotation? say i want them to dodge and change direction when the player shoots ?
Thanks in advance and Excuse my mistakes (not mother tongue )