+2 votes

Hello, im making a little 3d game to learn and im trying to make a kinematic body (that has a 3d sprite and 2 collision shapes) and i want to make that kinematic body follow another kinematic body called player, thanks.

Godot version 3.3.2
in Engine by (37 points)

1 Answer

+2 votes

Assuming you have a var that determines velocity (Vector3), try using velocity = position.directionto(player.position) * runspeed. Should work, not too sure though.

by (103 points)
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 webmaster@godotengine.org with your username.