Jump to content

Moving and Jumping


Lybrial
 Share

Recommended Posts

Hello,

 

im new to babylon.js and also new to javascript but i slowly get used to it.

I was trying to find a simple example how to create a simple figure like a 

cube which is moveable (for example with w, a, s, d keys) and is able to

perform a jump.

 

I was able to create a worl with gravity and collision but i cant figure out

how to create the jumping for a simple cube. I want to implement a ego 

perspective and controlls. So i thought it would be nice to create a cube

which gets followed by a camera. when i move to the left the camera 

also moves to the left. When i jump the camera also jumps. 

 

Is there an example somewhere? 

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