0 votes

Hello everyone.
I am newbie at godot and trying to move kinematicbody on certain path. I did it with pathway's offset property but couldn't detect collision with another kinematicbody.

I want my kinematicbody move forward for a while and turn left or right and move towards that direction for a bit too. I can do it with manually with Vector3(1,0,0) and Vector3(0,0,1) but I want it turn with slightly curved path. Like car turning right,left or u turn.

Is there any way to move kinematicbody on predefined path with moveandcollide?

Godot version 3.2.3
in Engine by (20 points)
recategorized by

Does the path include a collection of Vector3 objects? If so, those can be used with move_and_collide() to move the node in the desired direction.

Thank for answer. Yes Path include Vector3 objects and it worked. It works strange a little bit but I can continue from that point.

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.