Camera and objects


How can I make a camera that the user can move and doesn’t pass through the objects and walls?



create a sphere or a box or something that you can collide with, heck, an actual camera model. And check for a collision detection against that sphere or box or whatever.

Now the user moves that box or sphere and you set the camera’s rotation and translation to be that of the box. A cameraNode is ideal for this.

Hope that helps