Forum rules - please read before posting.

Changing first person camera rotation limits

hey @ChrisIceBox , I'm currently trying to code a custom action that will allow me to limit the pitch-rotation (looking up/down) and yaw(?) rotation (looking left /right) of a first person camera.

I can access the pitch rotation easy enough, but how do I achieve this for looking left/right?
Thanks!

Comments

  • The spin rotation (left/right) in first person isn't handled by the camera - it involves rotating the player's base GameObject directly.

    Instead of trying to hack the movement of the player, I'd recommend locking player movement and switching to an entirely custom camera script that has the same orientation as the first-person camera, but has whatever limits you need it to have.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.