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.
:?:
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:
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.
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.