Closed dcarlus closed 4 years ago
Create a CameraComponent and its Entity. Setting the lookAt() of the CameraComponent before/after adding it to the Entity gives different results...
So...
m_cameraEntity -> addComponent(m_cameraComponent) ; m_cameraComponent -> lookAt(Mind::Vector3f(0.f, 0.f, 0.f)) ;
is different from
m_cameraComponent -> lookAt(Mind::Vector3f(0.f, 0.f, 0.f)) ; m_cameraEntity -> addComponent(m_cameraComponent) ;
The camera does not move the same way and do not look a fixed point in the second case (everything is right with the first code).
Fixed! 👍
Create a CameraComponent and its Entity. Setting the lookAt() of the CameraComponent before/after adding it to the Entity gives different results...
So...
is different from
The camera does not move the same way and do not look a fixed point in the second case (everything is right with the first code).