Error when registering gltf-mesh file into registerOnPhysicsCollide

Hello,

I’m having issues resolving an error when registering my gltf mesh-impostor into registerOnPhysicsCollide.

Following error:
image

This is a simplified playground I’ve created:

I’m using AmmoJS as my physics engine.
My mesh is a simple cube, exported as .gltf in Blender.

Any help is welcome,

Thanks!

You need to pass callback function as 2nd argument of registerOnPhysicsCollide:

4 Likes