which part of the code is responsible for the rotation in this example? Is it the camera or the scene itself?
Take the 2-minute tour
×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.
in the render function, you have
That makes the camera take a circular path of radius 200 , always looking at the center of the scene |
|||||||||
|
According to the source they call the render method and it simply updates the camera position and uses camera.lookAt() to calculate the matrix to look at the center. |
|||||
|