I am trying to achieve a smooth turn of the enemy when they come to a corner. the LookAt function is jerky. Anyone solve this?
Hi,
First of all, you’ll have to define what a corner is. The computer does not know any corners. Then you could check in your code whether the enemy is at a corner and execute the code for smoothly turning around. The smooth movement/rotation could be achived with a coroutine.
Please feel free to ask our helpful community of students for further advice over on our Discord chat server.
See also:
- Forum User Guides : How to mark a topic as solved
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.