Bowling Game Project

Hi guys ! I am trying to make the bowling game project and in that project can you tell me how to create physics impostor for the bowling pins? https://playground.babylonjs.com/#C21DGD#163
If I am applying cylinderImpostor to the pins the pins and bowl are colliding but pins are not behaving normally.
If i am using meshImpostor the bowl and pins are not colliding.
Thanks in advance :slight_smile:

take a look to my little billard game

In your game spheres are colliding which can be done by sphereImpostor but what i want is physicsImpostor for bowling pins. I tried with cylinderImpostor but not working.

Maybe low polygon mesh colliders or composite ones with spheres and cylinders.

Did you tested other physic engines?

I tested with Oimo but not working fine(bowl is colliding with some pins and on other hand going inside some pins). Please check once - https://playground.babylonjs.com/#C21DGD#164

Can you please check once with cannon? I got some error with cannon.

I am newbie in babylon. So don’t know what to do. Can you elaborate more?

try the MeshImposter

  • https://playground.babylonjs.com/#C21DGD#165

    box1.physicsImpostor = new BABYLON.PhysicsImpostor(box1,BABYLON.PhysicsImpostor.MeshImpostor,{mass:0,restitution:0.5,friction:0.5},scene);
    bowl.physicsImpostor = new BABYLON.PhysicsImpostor(bowl,BABYLON.PhysicsImpostor.MeshImpostor,{mass:1,friction:0.5,restitution:0.5},scene);

with a bit randomness

… nice game concept. Keep on! :slight_smile:

… and here is a nice pick-up example (unfinished I gess) but someone can fix it?

Seems good. Thank you mate :slight_smile:

https://playground.babylonjs.com/#7S3ZHU#15

1 Like

Great job brother !! Thank you :slight_smile:

If you make some code changes it can support 100 pin+ bowling, XD.