BABYLON.PhysicsImpostor.registerOnPhysicsCollide issue, code not called in all cases

I can’t figure out why the “on collision” event handler is never called in some cases in this pretty simple example:
https://playground.babylonjs.com/#HA35TT#33

The sphere clearly collides with both the bounding box and the small cubes but a collision with a cube is not causing the collision event handler to fire. I have been staring at the code for hours…

Let me take a look

@bjornbacklund The list of boxes for collision callback was incorrect. You used the meshes instead of the impostors.

Fixed here:

bingo | Babylon.js Playground

1 Like

Oh, thank you. Feeling pretty embarrassed…

1 Like