summaryrefslogtreecommitdiffstats
path: root/scene/3d/remote_transform.h
diff options
context:
space:
mode:
authorTwistedTwigleg <beard.noah@gmail.com>2017-06-24 21:56:06 -0400
committerTwistedTwigleg <beard.noah@gmail.com>2017-07-05 16:29:48 -0400
commit3400c42c4dd9f6992ea043a4396752d5e70ece23 (patch)
tree0d03fd5581827cff80fec5572c0ec51c1c8a0b10 /scene/3d/remote_transform.h
parenta2e4b80ff5649504ed4bdc4b4c7f39c19ae6db6a (diff)
downloadredot-engine-3400c42c4dd9f6992ea043a4396752d5e70ece23.tar.gz
Added the following features to RemoteTransform and RemoteTransform2D:
- Added the ability to toggle changes in position, rotation, and scale - Added the ability to toggle changes in either local or global coordinates
Diffstat (limited to 'scene/3d/remote_transform.h')
-rw-r--r--scene/3d/remote_transform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/scene/3d/remote_transform.h b/scene/3d/remote_transform.h
index 9fa3011185..c25b57966e 100644
--- a/scene/3d/remote_transform.h
+++ b/scene/3d/remote_transform.h
@@ -39,6 +39,11 @@ class RemoteTransform : public Spatial {
ObjectID cache;
+ bool use_global_coordinates;
+ bool update_remote_position;
+ bool update_remote_rotation;
+ bool update_remote_scale;
+
void _update_remote();
void _update_cache();
@@ -50,6 +55,18 @@ public:
void set_remote_node(const NodePath &p_remote_node);
NodePath get_remote_node() const;
+ void set_use_global_coordinates(const bool p_enable);
+ bool get_use_global_coordinates() const;
+
+ void set_update_position(const bool p_update);
+ bool get_update_position() const;
+
+ void set_update_rotation(const bool p_update);
+ bool get_update_rotation() const;
+
+ void set_update_scale(const bool p_update);
+ bool get_update_scale() const;
+
virtual String get_configuration_warning() const;
RemoteTransform();