https://playcanvas.com/editor/scene/1530994
how do I stop the camera from turning further than -45 or 45 degrees?
Hm, try putting this.eulers.x = pc.math.clamp(this.eulers.x, -45, 45);
after line 61? Do you want the player to be able to look up and down too?
1 Like
thanks! it worked!
1 Like