How to limit movement of camera

i want to set my camera for fps view and i need to limit the movement of camera when we try to see up or down

how can i do this ?

nobody can help me…?

Check the cam in the update method… And if its values grow too high or too small set them back to your maximum.

yes, it was my first test and 2 things as question me :

first : when cam is block by me if , the result is not smooth and second thing is when my camera is block at value ,camera start to rotate a little bit on z axis or x axis i dont know, so how can i fix that ?

I dont know since i dont know your code and cant test it… :wink: