Search the Community
Showing results for tags 'CheckCollisions'.
-
if we set box1.physicsImpostor do we still have to set box1.checkCollisions = true; or can we remove box1.checkCollisions = true; from code? why we need .checkCollisions = true? Is not box1.physicsImpostor enought to do in code? Why/When we must do .checkCollisions = true for colliders? How .checkCollisions = true actualy works in babylonjs engine ? greetings Ian
- 6 replies
-
- impostor
- checkcollision
-
(and 4 more)
Tagged with:
-
Hello, When I am using free camera and attached controls, camera is falling only for about 1 second and than stops. I have to press control key to begin falling again. Can increase this duration or give camera instruction to fall (something like moveWithCollisions )? http://www.babylonjs-playground.com/#21AD8N Thanks!
- 2 replies
-
- freecamera
- camera
-
(and 3 more)
Tagged with:
-
I want to have a camera (the player) does not go beyond the stage. So I applied checkcollision on skybox. But it was used outside Cuba behind the scenes and inside the camera falls down from the edge of the stage. var camera = new BABYLON.FreeCamera("camera1", new BABYLON.Vector3(80, 5, -10), scene);camera.setTarget(BABYLON.Vector3.Zero());camera.ellipsoid = new BABYLON.Vector3(2, 2, 1);camera.checkCollisions = true;camera.applyGravity = true;// Skybox var skybox = BABYLON.Mesh.CreateBox("skyBox", 390.0, scene); var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene); skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("/skybox", scene); skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE; skybox.material = skyboxMaterial; skybox.checkCollisions = true;
-
Hi, setting the "checkCollisions" property to true on a box works well (*) when you're outside the box : http://www.babylonjs-playground.com/#1JVYDS But what if you're inside the box ? It looks like you can pass through the box (from inside to outside) : http://www.babylonjs-playground.com/#1JVYDS#1 Is there a way to prevent this ? I'm thinking about using 6 panes instead of a cube, but there might be another solution. * Except you can see through the box.
- 4 replies
-
- CheckCollisions
- box
-
(and 1 more)
Tagged with:
-
Hi! I'm currently working with a project where I decided to use babylon.js, and is a newbie on the framework. I have imported a BIM-model which consists of hundred of meshes into babylon, and wondered if there is a way to check collisions for all these meshes without have to get each mesh by name, var mesh = getMeshByName("meshName"); and then assign it mesh.checkCollisions = true;Is there a way to loop through all the importet meshes without getting them by name?
- 6 replies
-
- import
- checkcollisions
-
(and 2 more)
Tagged with: