Sphere works

This commit is contained in:
Confideo-IOM
2026-09-05 21:56:45 +01:00
parent d76df7f61b
commit ad8695b7a4
26 changed files with 142 additions and 77 deletions
@@ -264,12 +264,12 @@ glm::mat4 HydraActorManager::GetActorPose(HydraID actorID)
HydraPositionComponent &pos = GetEngine()->ECS()->GetComponent<HydraPositionComponent>(actorID);
glm::mat4 model_matrix = pos.transform;
// if (pos.needs_update)
// {
// glm::mat4 trans_matrix = glm::translate(pos.position);
// glm::mat4 rot_matrix = glm::toMat4(glm::quat(pos.orientation));
// model_matrix = trans_matrix * rot_matrix;
// }
if (pos.needs_update)
{
glm::mat4 trans_matrix = glm::translate(pos.position);
glm::mat4 rot_matrix = glm::toMat4(glm::quat(pos.orientation));
model_matrix = trans_matrix * rot_matrix;
}
return model_matrix;
}