Yeah, I don’t have a solution here, unfortunately. This needs a javascript weakref and finalizers support in WebIDL, which is not coming any time soon. Embind supports those, but it is slower than WebIDL, so Ammo is not going to switch to it. We stopped using Ammo in our team a while ago.