diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-25 18:35:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 18:35:48 +0200 |
commit | 88145e81e2562be8379f199e02af7ec253551392 (patch) | |
tree | d232faca3a3854b4f10ffe6c8c92d78437f0d3dd /scene/3d/path_3d.h | |
parent | af88438c71acc03d43109a25c03cd10849267ac7 (diff) | |
parent | bb936b2e273cc3ae1c7d775a0ab7e0e7e2a256a9 (diff) |
Merge pull request #64804 from Mickeon/rename-path-progress
Diffstat (limited to 'scene/3d/path_3d.h')
-rw-r--r-- | scene/3d/path_3d.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/3d/path_3d.h b/scene/3d/path_3d.h index bc4db61a01..45fa2c8917 100644 --- a/scene/3d/path_3d.h +++ b/scene/3d/path_3d.h @@ -75,7 +75,7 @@ public: private: Path3D *path = nullptr; real_t prev_offset = 0.0; // Offset during the last _update_transform. - real_t offset = 0.0; + real_t progress = 0.0; real_t h_offset = 0.0; real_t v_offset = 0.0; bool cubic = true; @@ -91,8 +91,8 @@ protected: static void _bind_methods(); public: - void set_offset(real_t p_offset); - real_t get_offset() const; + void set_progress(real_t p_progress); + real_t get_progress() const; void set_h_offset(real_t p_h_offset); real_t get_h_offset() const; @@ -100,8 +100,8 @@ public: void set_v_offset(real_t p_v_offset); real_t get_v_offset() const; - void set_unit_offset(real_t p_unit_offset); - real_t get_unit_offset() const; + void set_progress_ratio(real_t p_ratio); + real_t get_progress_ratio() const; void set_loop(bool p_loop); bool has_loop() const; |