Moving enemy towards player while playing animation
Hello guys, really appreciate you reading this post and helping me out. Basically my issue is this: I want me enemy to be animated all the time, it has an animation that moves it up and down on y axis, and i want him to follow my player while still keeping the animation. Problem is i can't move it while it is animated since animation already changes position, and if i put it empty GameObject as a child i can move the enemy, but collider doesn't work anymore. And if i put collider on the empty object it doesn't move with animation.
TL:DR How do i make enemy move while being animated without compromising rigidbody/ and collision.
Your answer
Follow this Question
Related Questions
C# Door Script Problem 0 Answers
Set variable to position of collided object. 0 Answers
How to detect if a GameObject is currently rotating? 1 Answer
function behave unexpectedly inside a coroutine. 0 Answers
ANIMATION TRIGGER DOESN'T PLAY 1 Answer