0 votes

I have a player, and I want the camera to be at the closest point of Path node Curve3D relative to the player origin. Could you give me a basic sample code, how can I implement this? Thanks in advance!

asked Jul 11, 2017 in Engine by saladass (25 points)

1 Answer

0 votes

You can use Curve3D.get_closest_point() to get the closest point on the path.

answered May 18 by greygraphics (14 points)

is there an easy way to get the index of the closest point?

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.