Sphere works
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user