Lybrial Posted May 12, 2015 Share Posted May 12, 2015 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 toperform a jump. I was able to create a worl with gravity and collision but i cant figure outhow 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 cubewhich 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? Quote Link to comment Share on other sites More sharing options...
gmalone Posted May 13, 2015 Share Posted May 13, 2015 I imagine you've already looked at the phaser.io/examples which contain examples of many cases. The example game there, titled StarStruck, illustrates running and jumping. But your question may be more about the camera, no? Quote Link to comment Share on other sites More sharing options...
Temechon Posted May 13, 2015 Share Posted May 13, 2015 Is it about Phaser or Babylon ? About Babylon, maybe you can try this : http://pixelcodr.com/tutos/physics/physics.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.