0 votes

Hello, I'm trying to make a knockback mechanic but I can't use physic process to use moveandcollide because the function is outside of it, so I decided to use root motion to move my character but I don't know anything about it and all the tutorials online talk about Blender and stuff, but I want to animate the movement using Godot.
Any help would be appreciated.

in Engine by (254 points)

2D or 3D?

I can't use _physic_process to use move_and_collide because the function is outside of it

Not sure if I can follow... Which function is outside of what? Probably would be easier to understand if you had provided some of your code, but it doesn't really sound like animation solves your issue, first and foremost because it won't check for collisions.

all the tutorials online talk about Blender and stuff

That's because root motion is about "Blender and stuff": you animate a character in Blender and then import the animation into Godot. Never done it myself, but this video seems to give a good overview about how it works.

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 Frequently asked questions and 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 [email protected] with your username.