Question by
$$anonymous$$ · Apr 08, 2021 at 06:06 AM ·
aishootertop-down
Implement Vector3.MoveTowards follow with random movement
I want to implement an AI behavior where an enemy runs towards the player while sidestepping randomly and aggressively (like in this video: https://www.youtube.com/watch?v=35Ut_C4eL40)
Currently I am just using Vector3.MoveTowards
but that results in smooth movement which isn't exactly what I need. I've tried adding an offset to the target using Random.insideUnitCircle
but it just doesn't work.
If anyone could give me an algorithm to implement it'll be great. Thanks
Comment