Sign in to follow this  
xiefeisd

The gravity in babylon101 10th

Recommended Posts

Hi everybody.

While I learn babylon101 10th course, there is a question:

course link: https://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity

code link: https://www.babylonjs-playground.com/#U8MEB0

The course says "your camera is going to fall on the y-axis until it collides with the ground".

Then I changed the code in the line 9th.

from: var camera = new BABYLON.FreeCamera("FreeCamera", new BABYLON.Vector3(0, -8, -20), scene);

to : var camera = new BABYLON.FreeCamera("FreeCamera", new BABYLON.Vector3(0, -5, -20), scene);

Now the camera does not "fall on the y-axis", it stay in the "air".

Why? There is different with expectation. How understand the "gravity"? Or it is a bug?

Thank you for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.