Rehkitz Posted August 30, 2018 Share Posted August 30, 2018 Hello, I've made a playground scene with my model https://www.babylonjs-playground.com/#UKNERM#16 The problem is that the character hovers over the ground instead of standing on the ground. I created some gravity with moveWithCollisions(new BABYLON.Vector3(0,-.1,0)); Does someone has a idea to solve this problem? Quote Link to comment Share on other sites More sharing options...
DecipherOne Posted August 30, 2018 Share Posted August 30, 2018 You should use the ellipsoid and ellipsoidOffset properties to position the mesh. char.ellipsoid = new BABYLON.Vector3(0.5, 1.0, 0.5); char.ellipsoidOffset = new BABYLON.Vector3(0, 1.0, 0); https://doc.babylonjs.com/babylon101/cameras,_mesh_collisions_and_gravity look at section 4. 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.