S
Stillwel
Guest
Ei... im trying to make a game where if the object wants to move it have to face towards the target first before they are allowed to accelerate. im using this line of code
its works fine until scenarios where the unit is facing 0 degree and the target is 270 degree. it should just need to turn counter clockwise it`s direction to reach the targeted direction. but instead what happens is that the unit circles and turn clockwise so it basically circles around. is there away to fix this?
its works fine until scenarios where the unit is facing 0 degree and the target is 270 degree. it should just need to turn counter clockwise it`s direction to reach the targeted direction. but instead what happens is that the unit circles and turn clockwise so it basically circles around. is there away to fix this?