Support “clear points” function in Path3D editor

This commit is contained in:
jsjtxietian 2024-03-27 12:40:30 +08:00
parent 5d08c2631c
commit 34eff85014
4 changed files with 72 additions and 1 deletions

View file

@ -2029,6 +2029,10 @@ Vector3 Curve3D::get_closest_point(const Vector3 &p_to_point) const {
return nearest;
}
PackedVector3Array Curve3D::get_points() const {
return _get_data()["points"];
}
real_t Curve3D::get_closest_offset(const Vector3 &p_to_point) const {
// Brute force method.