we’ve run into an issue using compound colliders. When a entity with compound colliders collide with another collider (trigger or collision), ammo.wasm throws a stack overflow error:
“Uncaught RangeError: Maximum call stack size exceeded”
// this throws errors when entering the trigger
this.entity.setPosition(this._orgPosition.x, this._orgPosition.y + up, this._orgPosition.z);
// this would work without errors
this.entity.rigidbody.teleport(this._orgPosition.x, this._orgPosition.y + up, this._orgPosition.z);
There’s PC shapes (AABB, Orientated Boxes, Planes and Spheres) that could be used for some of this.
I was actually looking for a 3D collision only library the other day for a similar reason. @whydoidoit wrote one a while back but can no longer find the original repo
I think he never released a GitHub repo or something, only a Dropbox link with the final script (the link isn’t active anymore right). I don’t think you will find anything else apart from the collisionDetection.js script included in the project you shared.
He had a BitBucket repo which is long gone. I’ve managed to grab the collision.js script out of the published build but it’s in legacy and outdated API