diff --git a/SHADE_Managed/src/Components/Transform.cxx b/SHADE_Managed/src/Components/Transform.cxx
index 0f0716dc..41298c21 100644
--- a/SHADE_Managed/src/Components/Transform.cxx
+++ b/SHADE_Managed/src/Components/Transform.cxx
@@ -29,13 +29,13 @@ namespace SHADE
{
GetNativeComponent()->SetLocalPosition(Convert::ToNative(val));
}
- Vector3 Transform::LocalRotation::get()
+ Quaternion Transform::LocalRotation::get()
{
- return Convert::ToCLI(GetNativeComponent()->GetLocalRotation());
+ return Convert::ToCLI(GetNativeComponent()->GetLocalOrientation());
}
- void Transform::LocalRotation::set(Vector3 val)
+ void Transform::LocalRotation::set(Quaternion val)
{
- GetNativeComponent()->SetLocalRotation(Convert::ToNative(val));
+ GetNativeComponent()->SetLocalOrientation(Convert::ToNative(val));
}
Vector3 Transform::LocalScale::get()
{
@@ -54,13 +54,13 @@ namespace SHADE
{
GetNativeComponent()->SetWorldPosition(Convert::ToNative(val));
}
- Vector3 Transform::GlobalRotation::get()
+ Quaternion Transform::GlobalRotation::get()
{
- return Convert::ToCLI(GetNativeComponent()->GetWorldRotation());
+ return Convert::ToCLI(GetNativeComponent()->GetLocalOrientation());
}
- void Transform::GlobalRotation::set(Vector3 val)
+ void Transform::GlobalRotation::set(Quaternion val)
{
- GetNativeComponent()->SetWorldRotation(Convert::ToNative(val));
+ GetNativeComponent()->SetWorldOrientation(Convert::ToNative(val));
}
Vector3 Transform::GlobalScale::get()
{
diff --git a/SHADE_Managed/src/Components/Transform.hxx b/SHADE_Managed/src/Components/Transform.hxx
index 9efd2927..43118b1f 100644
--- a/SHADE_Managed/src/Components/Transform.hxx
+++ b/SHADE_Managed/src/Components/Transform.hxx
@@ -17,14 +17,14 @@ of DigiPen Institute of Technology is prohibited.
// Project Includes
#include "Components/Component.hxx"
#include "Math/Vector3.hxx"
-#include "Utility/Convert.hxx"
+#include "Math/Quaternion.hxx"
// External Dependencies
#include "Math/Transform/SHTransformComponent.h"
namespace SHADE
{
///
- /// CLR version of the the SHADE Engine's TransformComponent.
+ /// CLR version of the SHADE Engine's TransformComponent.
///
public ref class Transform : public Component
{
@@ -52,12 +52,12 @@ namespace SHADE
void set(Vector3 val);
}
///
- /// Local Z-axis rotation angle stored by this Transform in Radians.
+ /// Local rotation quaternion stored by this Transform.
///
- property Vector3 LocalRotation
+ property Quaternion LocalRotation
{
- Vector3 get();
- void set(Vector3 val);
+ Quaternion get();
+ void set(Quaternion val);
}
///
/// Local scale stored by this Transform.
@@ -76,16 +76,15 @@ namespace SHADE
void set(Vector3 val);
}
///
- /// Global Z-axis rotation angle stored by this Transform in Radians.
+ /// Global rotation quaternion stored by this Transform.
///
- property Vector3 GlobalRotation
+ property Quaternion GlobalRotation
{
- Vector3 get();
- void set(Vector3 val);
+ Quaternion get();
+ void set(Quaternion val);
}
///
/// Global scale stored by this Transform.
- /// Note that this operation is expensive.
///
property Vector3 GlobalScale
{