diff options
| author | Juan Linietsky | 2017-12-26 12:44:58 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-26 12:45:56 -0300 |
| commit | c1153f5041f896536957b851329b5adaa1de6dc4 (patch) | |
| tree | b9ebf4b5f247521ffbeb97bde57415d62679c530 /core/math/matrix3.h | |
| parent | b8c849205c18c632e34c66c294bd5b38b11687f3 (diff) | |
| download | godot-c1153f5.tar.gz godot-c1153f5.tar.zst godot-c1153f5.zip | |
Change the rotate function of Spatial to be local, makes more sense. Closes #14569
Diffstat (limited to 'core/math/matrix3.h')
| -rw-r--r-- | core/math/matrix3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/math/matrix3.h b/core/math/matrix3.h index 9a33b8203..9a75308f0 100644 --- a/core/math/matrix3.h +++ b/core/math/matrix3.h @@ -75,6 +75,9 @@ public: void rotate(const Vector3 &p_axis, real_t p_phi); Basis rotated(const Vector3 &p_axis, real_t p_phi) const; + void rotate_local(const Vector3 &p_axis, real_t p_phi); + Basis rotated_local(const Vector3 &p_axis, real_t p_phi) const; + void rotate(const Vector3 &p_euler); Basis rotated(const Vector3 &p_euler) const; |
