Jump to content

FreeCamera Rotation Limit around X-Axis


iiceman
 Share

Recommended Posts

Damn, I added it to my game and tried it out... basically it works... just like in the demo. But as soon as you are up side down the directions are inversed and facing straight down and trying to turn left or right doesn't work as one would expect either... so I guess I'll have to revert to the normal version again :(

 

Maybe somebody can help me figuring out how to constantly update the upVector of the camera? I think that might still be a chance to make it work :D

Link to comment
Share on other sites

This version takes into account any rotation about the x axis and begins to tilt the camera so that going over the top and down the other side results in the cones being the same way up.  http://www.babylonjs-playground.com/#1U5Z73#7

 

Same keys as before.

 

You can see on line 104 what I have done with the upVector, whether this helps you or not??????

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...