summaryrefslogtreecommitdiff
path: root/scene/3d/node_3d.h
diff options
context:
space:
mode:
authorfoxydevloper <12120644+foxydevloper@users.noreply.github.com>2021-07-21 00:13:52 -0400
committerfoxydevloper <12120644+foxydevloper@users.noreply.github.com>2022-07-01 10:27:07 -0400
commit8b16a4131fa1073c098a6ac1c987cfd7d6bb5408 (patch)
treecb066e32854c1982a9e398e42c2895e842a7a56b /scene/3d/node_3d.h
parentd30a0d223e6bf0a1cf17b8fc1d17ae5ba2115403 (diff)
Add global_position and global_rotation to Node3D
Diffstat (limited to 'scene/3d/node_3d.h')
-rw-r--r--scene/3d/node_3d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/3d/node_3d.h b/scene/3d/node_3d.h
index cfd88585e4..b1e129798d 100644
--- a/scene/3d/node_3d.h
+++ b/scene/3d/node_3d.h
@@ -182,12 +182,18 @@ public:
void set_rotation(const Vector3 &p_euler_rad);
void set_scale(const Vector3 &p_scale);
+ void set_global_position(const Vector3 &p_position);
+ void set_global_rotation(const Vector3 &p_euler_rad);
+
Vector3 get_position() const;
RotationOrder get_rotation_order() const;
Vector3 get_rotation() const;
Vector3 get_scale() const;
+ Vector3 get_global_position() const;
+ Vector3 get_global_rotation() const;
+
void set_transform(const Transform3D &p_transform);
void set_basis(const Basis &p_basis);
void set_quaternion(const Quaternion &p_quaternion);