0 votes

Hello, im new.
I would like to know how a cylinder could be created along a curve (as if it were a worm), I am trying to use csgcylinder, but I cannot find the way.
Help with the code please!
enter image description here

in Engine by (20 points)

1 Answer

+2 votes
Best answer

You can use a CSGPolygon node to follow a path. Make the shape in the PoolVector2Array polygon property, there's an interface for this using handles at the origin of the 3D scene, then set the mode to path, assign the path node and set path rotation to PathFollow.

by (3,211 points)
selected by
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.