Jump to content

Gravity Camera stops falling


Echnaton
 Share

Recommended Posts

Hello everybody

I try to make a little voxel game and am changing from three.js to babylon.js. So far I like babylon.js very much. Its great :-).

At the moment I have a problem which I can't solve. I use gravity, but when my camera should fall from somewhere high, it does only so after a key is hit and shortly after stops again. For each time i hit an arrow key it falls a little more.

Here is a playground example based on the tutorial to show what I mean. Just click in the picture and press the back arrow.

http://www.babylonjs-playground.com/#B0NTV4

Do you have any idea what i am missing? What can I do that it does not stop falling? Thank you

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