Fixed quaternion relative rotations!
This commit is contained in:
@@ -40,7 +40,7 @@ glm::quat Systems::TransformSystem::AbsoluteOrientation(EntityID entity)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
auto transform = m_World->GetComponent<Components::Transform>(entity, "Transform");
|
auto transform = m_World->GetComponent<Components::Transform>(entity, "Transform");
|
||||||
absOrientation *= transform->Orientation;
|
absOrientation = transform->Orientation * absOrientation;
|
||||||
entity = m_World->GetEntityParent(entity);
|
entity = m_World->GetEntityParent(entity);
|
||||||
} while (entity != 0);
|
} while (entity != 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user