collision with camera, can we :::

hello guys !!
well, i would like to know if it is possible to make my camera collide with the level model , ones that in my game i can rotate the camera. If i’m right next to a wall and i try to rotate, the camera rotates but it goes inside the wall =(

so , i would like to know if it is possible to make my camera collide, so it cant go through objects.

thanks !

Yeah, you’d need to add collision solids (e.g. a sphere) to your camera. Look at the Roaming Ralph sample, that one sets up a ray for the camera, other solids would work similar.

thanks pro-rsoft !!!
appreciate that ! i will try !
thanks =)