al404 Posted June 28, 2016 Share Posted June 28, 2016 not sure if is a bug, i have two folders one with babylon 2.3 and one with 2.4 if i switch between babylon.js 2.3 to 2.4 inside BABYLON.SceneLoader.ImportMesh i set a ground, and enable collision ground.checkCollisions = true; seems to be ignore because camera can get under the ground, this doesn't happen with 2.3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 Hey! can you try to repro on the PG? Quote Link to comment Share on other sites More sharing options...
adam Posted June 28, 2016 Share Posted June 28, 2016 It's working here: http://jsfiddle.net/969d8/5/ GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
al404 Posted June 28, 2016 Author Share Posted June 28, 2016 (edited) here http://www.babylonjs-playground.com/#1W8VGP#1 Edited June 28, 2016 by al404 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 I don't see a problem in this PG Quote Link to comment Share on other sites More sharing options...
al404 Posted June 28, 2016 Author Share Posted June 28, 2016 (edited) 18 minutes ago, Deltakosh said: I don't see a problem in this PG is it normal that i can move the camera under the ground with camera.checkCollisions = true; and ground.checkCollisions = true; i guess i can't change babylon js version used by playground EDIT 1: with 2.3 my camera could not go under the ground EDIT 2: i forgot the line 5 scene.collisionsEnabled = true; ( i'm thing to reproduce my script ) but still not detecting collision between camera and ground http://www.babylonjs-playground.com/#1W8VGP#2 Edited June 28, 2016 by al404 Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 28, 2016 Share Posted June 28, 2016 Hi al-not found, it seems like a bug to me! AT first I thought it was because you didn't define an ellipsoid, but that's not the issue. Let me debug it and get back to you. al404 1 Quote Link to comment Share on other sites More sharing options...
adam Posted June 28, 2016 Share Posted June 28, 2016 Is this supposed to work with an ArcRotateCamera? Quote Link to comment Share on other sites More sharing options...
adam Posted June 28, 2016 Share Posted June 28, 2016 There does seem to be something wrong with collisions and the ArcRotateCamera: 2.3: http://jsfiddle.net/969d8/11/ 2.4: http://jsfiddle.net/969d8/12/ Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 28, 2016 Share Posted June 28, 2016 Problem found. I love it when it is just one line of code Fix is coming in 3 minutes! Or maybe 5. al404 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted June 28, 2016 Share Posted June 28, 2016 making people wait for 5' is totalyy disrespectful shame on you ! Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 28, 2016 Share Posted June 28, 2016 Done! So simple... So Easy... so hard to find al404 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted June 28, 2016 Share Posted June 28, 2016 Until it is published in the PG, you can test it here - http://www.babylonjs-playground.com/#1W8VGP#3 al404 and adam 2 Quote Link to comment Share on other sites More sharing options...
al404 Posted June 28, 2016 Author Share Posted June 28, 2016 Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 fix published:) al404 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.