biswazr Posted October 6, 2015 Share Posted October 6, 2015 Hi everybody, I am a beginner to babylon js, so hope you all bear with my sily questions ,anyway here is the link on playground http://playground.babylonjs.com/#1RY5PB dont know what is wrong ? My controlled box is not detecting collision with other box in scene. kindly anybody point me out what i did wrong USE WASD key to move around Quote Link to comment Share on other sites More sharing options...
EJanuszewski Posted October 6, 2015 Share Posted October 6, 2015 I'm also new so can't give you a solid answer but as far as I'm aware it simply detects collisions, unless it's the camera colliding I believe it's up to you to decide how to handle it, maybe with a collider, I'm sure someone will point me out if I'm wrong though Take a look at this, maybe it'll help.http://blogs.msdn.com/b/davrous/archive/2014/11/18/understanding-collisions-amp-physics-by-building-a-cool-webgl-babylon-js-demo-with-oimo-js.aspx Quote Link to comment Share on other sites More sharing options...
biswazr Posted October 6, 2015 Author Share Posted October 6, 2015 Thanks EJanuszewski for your help but,i already went through above link , but for now i am not trying to use physics engine as i want to check simple collision just like a simple wall collision i even check with character.onCollide function and found that collision is taking place but my mesh getting through it not stopping while collision occur . Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 6, 2015 Share Posted October 6, 2015 Hello, your code is a little bit complex, but if you want to use collision, you have to define an ellipsoid that will be the impostor used to represent your cube. Or you may want to check this as well: http://playground.babylonjs.com/?10 biswazr 1 Quote Link to comment Share on other sites More sharing options...
biswazr Posted October 6, 2015 Author Share Posted October 6, 2015 @Deltakosh thank you for your reply . i got the idea how to get collision work.Thank you Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 6, 2015 Share Posted October 6, 2015 I'm glad that you found it ! 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.