A Strange Problem In My Game !!!!

I was making a game from a video tutorial and have a strange problem !
In this game you have a target and should shoot a object (like a ball) to the target.
If the ball collisions to target, the target does “down” animation and does “up” animation after 5 seconds.

But my problem is this, when object (ball) collisions to target the code works good (it means does animations) but the target change its position and goes to sea in my game !!!

whats problem ?!

all of codes are correct and i wrote them from tutorial.
:?:

Probably your animation. Make sure it just rotates and doesn’t move around. If that isn’t the case, comment out the animation lines and try again.

No my animation is correct. i am sure.
i test another animated model too but they have this problem too !! when animation played , moved position too !!!
i hadn’t this problem before.
Please some body test this very simple animate object that i have made, and use it in Unity and see the object will change position in you’r PC or not :roll:

329281–11609–$cube_198.rar (1.91 KB)

i’ve been having the same problem with a UFO - the animation just makes it spin round like a classic UFO - but when the animation plays it just changes position to some spot in the void.

please, somebody help us D:

But i think that this is a unreal problem :frowning:
there is no body to help us :frowning:

Animations contain positional data. If you position an object directly, then play the animation, it will naturally reposition itself to where it was animated.

If you don’t want this behaviour, put your animated object under another object and reposition the parent object, not the object being animated.

ah yes - i found this out today the hard way. but thank you nonetheless! you are the most helpful person in 5 threads in any direction lol

Wow !!!

Very very thanx :smile:

I hadn’t any hope and think this problem won’t be solved :wink:

Thanx again :sweat_smile:

like empty object? cuz my turret head in look rotation look from y axis instead of z axis :cry: