Add flag to enable use of accurate path tangents for polygon rotation in CSGPolygon3D

The new property is called `path_rotation_accurate`.
This commit is contained in:
Juan Pablo Arce
2024-07-17 14:16:51 -03:00
committed by Juan Pablo Arce
parent ce88021aa0
commit dd7bbcc837
4 changed files with 179 additions and 26 deletions

View File

@@ -401,6 +401,7 @@ private:
float path_interval;
float path_simplify_angle;
PathRotation path_rotation;
bool path_rotation_accurate;
bool path_local;
Path3D *path = nullptr;
@@ -452,6 +453,9 @@ public:
void set_path_rotation(PathRotation p_rotation);
PathRotation get_path_rotation() const;
void set_path_rotation_accurate(bool p_enable);
bool get_path_rotation_accurate() const;
void set_path_local(bool p_enable);
bool is_path_local() const;