I have included two screen shots: one where the paddle animation starts at the beginning of the round, and another when the animation has ended. As you can see the ball is not center to the paddle during the animation, but when the animation stops it locks to the center as normal.
Does anyone have a hint or idea of what might be happening here?
Edit: Providing more information as my previous attempt is too vague.
Inside the ball.cs script
I start with getting the distance from the paddle to the ball.This is done in my Start() method
This works great AFTER the animation for the new life is complete. However during this animation the ball will be locked to the far left.
The ball and paddle are separate objects, not parented and it does appear I am animated the ball along with the paddle, but only during a specific time when the ball is locked to the paddle. For some reason during the new life animation the ball is locked to the far left, but when the animation finishes, the ball is locked where I expect it to be, in the middle.
How have you designed the state where ball should stick to paddle?
In general if the ball is a separate object, it should have no connection of any kind to paddle, unless you have parented it to paddle. Or have you animated the ball somehow together with paddle? This shouldn’t probably be done, if that was the case.
But then again, I’m just guessing - explain a bit more, show the code, show your scene setup and so on…
Sorry… it can be difficult knowing what other people need to know versus what I already know and i seemed to have failed in that department. Let me edit the above to be more clear and therefore answer the questions you have provided. Thanks for the feedback.
It occurred to me that animated sprites may be rendered on the pivots of the sprites themselves. Going into the sprite editor I noticed that all my pivots for each frame of the sprite were set to custom. I set each to center, and now it works as expected.