Ball falls through my Mesh (despite checkCollisions & enabled physics)

Hello to everyone. Can you please help me ? I drawed a roulette in 3Ds Max. exported it with following settings:

Enabled physics in the scene (used this.scene.enablePhysics(new BABYLON.Vector3(0, -9.81, 0), new OimoJSPlugin())), made all checkCollision to true, created MeshImpostors. But my ball for roulettte (also created in 3Ds Max) falls through the roulette. It doesn’t fall through a ground, if to create in Babylon such, but just jumps on it, so physics is seem to be enabled… Also my roulette doesn’t fall itself even if to give it a mass = 10 (so physics doesn’t work with my roulette). So can you help me ? I can’t find a solution :frowning:

https://playground.babylonjs.com/#YIU90M#388

Thank you, waiting for your help

This unfortunately requires a repro in the playground as it is impossible to know what could go wrong here without it

1 Like

So, can you tell me, how can I do to upload it to playground ? With meshes and my class.
Now structure is the following

Do I have a possibility to upload it with .babylon file & textures ?

This is all available here Using External Assets In the Playground | Babylon.js Documentation but you should create only a minimal repro not your full experience if possible

1 Like

Hello again !
I put code to playground
Can you now look and try to help me ?
I am having a deadline tomorrow :frowning:

https://playground.babylonjs.com/#YIU90M#388

1 Like

In this playground I couldn’t use new OimoJSPlugin() , because playground doesn’t know about it — so I just made scene.enablePhysics(new BABYLON.Vector3(0, -9.81, 0)) without 2nd parameter (like they did in this example bingo | Babylon.js Playground (babylonjs.com)). So now ball doesn’t fall at all… Help, please :slight_smile:

@Cedric might be able to help with this one :slight_smile:

1 Like

Ball falls through roulette | Babylon.js Playground (babylonjs.com)

What can you say about it ?

You are not using the intended mesh for physics impostor. With the appropriate ball mesh, you get something that falls:

https://playground.babylonjs.com/#YIU90M#424

2 Likes