Solid particle system with InstancedMesh

Super non-urgent stuff but I think it would be better to ask.

SPS.addShape() has a function signature that accepts only Mesh but I have been using it with InstancedMesh and it works perfectly in js. ts complains tho. My workaround was to extend the sps type. So would there be any can of worms if we allowed addShape to accept instanced meshes?

This is pretty old code, not 100% sure of impact…

In fact, allowing AbstrachMesh instead of Mesh seems to work:

2 Likes