I am using MouseLook.py to make a game in BGE but I noticed that over time the camera will "roll" from left to right, my idea was to continually set the rotation on the cameras local axis to 0, but I realized that I have no Idea how to do this.

  • 2
    $\begingroup$ It's probably a better idea to figure out why the script is doing this in the first place, and fix this in the script itself.. $\endgroup$ – gandalf3 Sep 17 '14 at 6:38
  • $\begingroup$ @gandalf3 I have used other scripts in similar projects and had the same problem, my solution should work fine. $\endgroup$ – Joe D Sep 17 '14 at 12:49
  • $\begingroup$ Edit the script. $\endgroup$ – someonewithpc Sep 17 '14 at 15:23
  • $\begingroup$ @someonewithpc Ok, how do I SET the cameras y rotation to 0 $\endgroup$ – Joe D Sep 17 '14 at 21:48
  • $\begingroup$ @user3786755 bpy.data.objects["Camera"].rotation_euler.y = 0 $\endgroup$ – someonewithpc Sep 17 '14 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.