Dimitry Posted May 21, 2015 Share Posted May 21, 2015 Hello!There is a small scene imported from 3dsmax: http://sitesman.com/3dcity/1/There is a free camera there, what I am trying to achieve now is to disallow the camera to walk through the walls and objects. So the code goes like this: Scene.gravity = new BABYLON.Vector3(0, -9.81, 0); Scene.collisionsEnabled = true;camera.checkCollisions = true;camera.applyGravity = true;camera.ellipsoid = new BABYLON.Vector3(1, 1, 1);Scene.checkCollisions = true;Well and as you can see the camera goes through the walls. I feel something else should be done here, maybe I should create invisible meshes like squares and put them around the walls? Or what is the fastest method. Thanks! Quote Link to comment Share on other sites More sharing options...
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.