Work on quaternion rotation

This commit is contained in:
antopilo
2022-07-10 18:36:10 -04:00
parent 32e63a5137
commit a4cdf4b524
8 changed files with 44 additions and 34 deletions

View File

@@ -9,7 +9,7 @@ namespace Nuake
Translation = Vector3(0, 0, 0);
Orientation = Quat(0, 0, 0, 0);
GlobalOrientation = Orientation;
Rotation = Vector3(0, 0, 0);
//Rotation = Vector3(0, 0, 0);
Scale = Vector3(1, 1, 1);
}
@@ -24,7 +24,7 @@ namespace Nuake
Matrix4 TransformComponent::GetGlobalTransform() const
{
return GlobalTransform;
return LocalTransform;
}
Matrix4 TransformComponent::GetLocalTransform() const