checkCollisions not working as I expect

https://www.babylonjs-playground.com/#QCFW7B#9
Hi, all
I create a box that able to move by arrow keys(Line 122 createTank function ) and a table (Line 254 createTable2 function).

The problem is, the table’s collision is not working. But if I change the height value (Line 285) 0.3 to 3 then it is working as I want.

But If I increase the height value (Line 285) more than 0.3, then it’s not table anymore.
Please, can anybody tell me, how to make a table, without changing the height value(Line 285)?

Pinging @RaananW

Hey, will be happy to help, but I can’t really get the playground to work.
Is it working for you?

1 Like

But the URL is working.
I just pest main.js file’s code in the playground and save it. Then Babylon generates the URL. The way I load the file isn’t correct? Should I follow some other way?

you should only put the scene logic in it, and not the engire and canvas logic. createScene should return a scene (or the entire game). The rest is not needed. Just make sure it works as you expect in the playground, and we will be able to help further

1 Like

https://playground.babylonjs.com/#A9MZL8#31

This is the link now it working right way. I explain the problem again.
I create a box that able to move by arrow keys(Line 64 createTank function ) and a table (Line 154 createTable2 function).

The problem is, the table’s collision is not working. But if I change the height value (Line 285) 0.3 to 3 then it is working as I want.

But If I increase the height value (Line 185) more than 0.3, then it’s not table anymore.
Please, can you tell me, how to make a table, without changing the height value(Line 285)?