How to move kinematicmody3d on a certain path with move_and_collide?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vitavit

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 move_and_collide?

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.

Ertain | 2020-12-26 18:30

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

vitavit | 2020-12-27 22:20