Jump to content

ArcRotateCamera unlimited alpha rotation (Solved)


Recommended Posts

Hello everyone!

I'm new with babylon.js and now I'm trying to make a third person shooter game.

The idea is to make an ArcRotateCamera that is able to perform unlimited alpha rotation. However, I'm struggling with the mouse cursor as it has a limited movement (that is the border of the browser), making an unlimited alpha rotation impossible.

Is there any way to make it possible?

Thank you in advance

Link to comment
Share on other sites

Hi zeamays,


You want unlimited rotation like in this page ? http://www.jaskar.host-ed.me/BabyksCube/

Then use :

camera.lowerAlphaLimit = null;
camera.upperAlphaLimit = null;


For the mouse cursor, you can use : requestPointerLock

Be sure to call the webkit, moz and other versions!

It will hide the mouse cursor, so take care to display a reticle or something like this at the screen center, and exit the state en "Esc" key press :)


Another question ? :)


If it's okay, remind to mark the topic as solved.

Link to comment
Share on other sites

  • zeamays changed the title to ArcRotateCamera unlimited alpha rotation (Solved)

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.

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.


  • Recently Browsing   0 members

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