Sign in to follow this  

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

Share this post

Link to post
Share on other sites

Hi zeamays,


You want unlimited rotation like in this page ?

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.

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.