diff --git a/SHADE_Managed/src/Components/Transform.cxx b/SHADE_Managed/src/Components/Transform.cxx
index 41298c21..98f0da4f 100644
--- a/SHADE_Managed/src/Components/Transform.cxx
+++ b/SHADE_Managed/src/Components/Transform.cxx
@@ -37,6 +37,14 @@ namespace SHADE
{
GetNativeComponent()->SetLocalOrientation(Convert::ToNative(val));
}
+ Vector3 Transform::LocalEulerAngles::get()
+ {
+ return Convert::ToCLI(GetNativeComponent()->GetLocalRotation());
+ }
+ void Transform::LocalEulerAngles::set(Vector3 val)
+ {
+ GetNativeComponent()->SetLocalRotation(Convert::ToNative(val));
+ }
Vector3 Transform::LocalScale::get()
{
return Convert::ToCLI(GetNativeComponent()->GetLocalScale());
@@ -62,6 +70,14 @@ namespace SHADE
{
GetNativeComponent()->SetWorldOrientation(Convert::ToNative(val));
}
+ Vector3 Transform::GlobalEulerAngles::get()
+ {
+ return Convert::ToCLI(GetNativeComponent()->GetWorldRotation());
+ }
+ void Transform::GlobalEulerAngles::set(Vector3 val)
+ {
+ GetNativeComponent()->SetWorldRotation(Convert::ToNative(val));
+ }
Vector3 Transform::GlobalScale::get()
{
return Convert::ToCLI(GetNativeComponent()->GetWorldScale());
diff --git a/SHADE_Managed/src/Components/Transform.hxx b/SHADE_Managed/src/Components/Transform.hxx
index 43118b1f..bbe9fd19 100644
--- a/SHADE_Managed/src/Components/Transform.hxx
+++ b/SHADE_Managed/src/Components/Transform.hxx
@@ -60,6 +60,14 @@ namespace SHADE
void set(Quaternion val);
}
///
+ /// Local euler angle rotations stored by this Transform.
+ ///
+ property Vector3 LocalEulerAngles
+ {
+ Vector3 get();
+ void set(Vector3 val);
+ }
+ ///
/// Local scale stored by this Transform.
///
property Vector3 LocalScale
@@ -84,6 +92,14 @@ namespace SHADE
void set(Quaternion val);
}
///
+ /// Global euler angle rotations stored by this Transform.
+ ///
+ property Vector3 GlobalEulerAngles
+ {
+ Vector3 get();
+ void set(Vector3 val);
+ }
+ ///
/// Global scale stored by this Transform.
///
property Vector3 GlobalScale