+1 vote

I'm making a 3D game and I need to animate the position of a character relative to the scene it is in.

My character is a scene instantiated in the root node of my level scene.
I created an animation in my character scene and keyframed the translation of the root node, but when instantiated in my level the animation translates my character relative the the origin of my level scene and not the "original position" of my character scene.

Maybe I can save the original transform and reapply it to the new transform the animation created but this would be quite messy.
I could also add a container node around my character and move this node to move the character but other than being messy too, this means that I would need to play with transforms to finally move the character at the end of the animation.

Is there a way to do this without requiring the use of messy tricks?

in Engine by (13 points)

I'm having the same issue and am scouring the web for a less mess solution than making a new "placeholder" object. is their anyway to add an objects offset to an animation relative to a signal maybe?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.