Howdy, Stranger!

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

In this Discussion

Lock Camera Rotation in 3D

in Codea Craft Posts: 154

How can I lock the camera’s x and z rotation so it just rotates on the y axis?

Kind regards,
Creator27

Comments

  • Posts: 1,828
    The easiest way is to set x and z to zero every draw cycle.
  • Posts: 154

    @UberGoober, I forgot to mention that the camera is parented to the player and the players z axis changes when you move your finger on the screen.

Sign In or Register to comment.