Reset camera view
in
Core Library Questions
•
1 year ago
Hey guys,
I have my little openGL sketch where I can rotate around a 3d model. I am not using PeasyCam, cause I think it has some weird movement in it and I also had problems to position it correcty, so I use translate and rotate to move in the 3d scene.
However, I'd like to reset my camera to the intial view when hitting the spacebar. How would I do this (not the keyboard thing, just the camera)?
Cheers
I have my little openGL sketch where I can rotate around a 3d model. I am not using PeasyCam, cause I think it has some weird movement in it and I also had problems to position it correcty, so I use translate and rotate to move in the 3d scene.
However, I'd like to reset my camera to the intial view when hitting the spacebar. How would I do this (not the keyboard thing, just the camera)?
Cheers
1