securet Posted December 9, 2016 Share Posted December 9, 2016 problem is described from line 44 http://www.babylonjs-playground.com/#4HUQQ#175 i try to move the white box and it should fall down to the ground, but it doesn't fall down and the movement seems to be strange too. Maybe I need to attach mass to it, but I don't know how. The example is mainly taken from http://doc.babylonjs.com/tutorials/Cameras,_Mesh_Collisions_and_Gravity Quote Link to comment Share on other sites More sharing options...
max123 Posted December 9, 2016 Share Posted December 9, 2016 here you go: http://www.babylonjs-playground.com/#4HUQQ#176 Quote Link to comment Share on other sites More sharing options...
securet Posted December 10, 2016 Author Share Posted December 10, 2016 and how to apply gravity? Quote Link to comment Share on other sites More sharing options...
max123 Posted December 10, 2016 Share Posted December 10, 2016 a. use a full on physics engine b. myMesh.moveWithCollisions(new BABYLON.Vector3(0, g, -.1)); g -= .02; GameMonetize 1 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.