How to use Path (3D) / PathFollow?

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

I have not found any video or tutorial on how to use Path 3D (there are several on Path 2D, but 2D and 3D are quite different).

  1. Is there any tutorial about this in 3D?
  2. I discovered that Path 3D has no curves, so I have to manually create them via code, using the sine/cosine pattern, is that right?
  3. I’m creating the path via code using several add_point, like $Path.curve.add_point (Vector3 (1,1,1)) and so on. What command to move a node within PathFolow?

Not sure why this isn’t in the documentation but I’ve just learned that there are small icons that appear on the top toolbar that allow you to create your desired path in the editor. Not sure if that helps any but it helped me quite a bit so I thought I’d share. :slight_smile:

Also just figured out if you hold shift and drag a point with the ‘Select Points’ tool enabled you create nice curves on your path.

Kaptain-Kronic | 2020-10-12 01:07

hello , same here , i didn’t find any tutorial , so i made a small basic code for understanding .

func _physics_process(delta):
var _curve =
pathfollow.offset += delta * 10

the offset is what you looking for to move the node .
i hope it’s work for you .

Sorano Sakura | 2021-06-24 19:14

:bust_in_silhouette: Reply From: StarLord

Hey! I think you can try PathFollow’s offset property. Don’t forget PathFollow must have a child object (your gameobject for movement by curve3d). Sorry for my mistakes. English is not my native language!

:bust_in_silhouette: Reply From: nicoamalfi

check thathone out, its a Startfox like shooter that uses the pathfollow, but I can’t figure it out how to clide the character with the surface. it is a bit confusing u should watch it a few times and some of his other videos, hope it hepls :slight_smile: