Jump to content

FreeCamera more FPS like?


karpo
 Share

Recommended Posts

Hi - again,

 

Any tips on how should I change the default behavior of FreeCamera to make it more FPS like. By this I mean: mouse down not required to rotate. 

 

This would probably cause some usability challenges in browser environment but maybe allow user to go full screen mode (how to do this?) would help.

 

Thanks in advance for the replies and once again good job on making BJS fun!

 

-Karpo

Link to comment
Share on other sites

Hi karpo,

2 options:

1 - Modify yourself the code of Babylon.FreeCamera.js

2 - Override the default behavior of the FreeCamera. You'll an example in my following article: http://blogs.msdn.com/b/davrous/archive/2013/11/19/using-webgl-to-create-games-for-the-windows-store.aspx where I'm taking the FreeCamera as the base prototype to build a special camera for the Xbox controller.

Bye,

David

Link to comment
Share on other sites

Hi. I simply changed engine.isPointerLock into 'true' and pretty much got what I was looking for. I see the engine having a method switchFullscreen(). I guess this is for asking the browser to go into fullscreen. I couldn't quite figure out what to give it as a parameter - didn't work just by calling engine.switchFullscreen().

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...