onCollideObservable not trigger

Hello,

Looks like onCollideObservable doesn’t fire after a collision.

Also it looks like a mesh smaller than < 1 unit does not collide with a sphere of >= 1 unit, but yet the sphere stops before the collision.

I found a PG who try something like me and we can see that there, the cube is in collision before even being there. And the cube does not even move yet it should move. In the PG above, the opposite occurs. the sphere moves, but the collision is not triggered.

cc @cedric (please be patient as cedric is on vacations)

for the first issue:
As it’s not changed in the PG, the default ellipsoid size is ellipsoid = new Vector3(0.5, 1, 0.5);
If you change it to 0.1,0.1,0.1, the bullet will get closer.

For the second question, the world matrix is not computed before starting to move the cube, so a detection is found and only 1 observable is fired. force the matrix computation and everything is fine after:

2 Likes

Thanks Cedric. I hadn’t thought of all this

1 Like