Rebuilding Immutable SPS

I’m using an immutable SolidParticleSystem to build some static geometry for a scene background. Is there a way to rebuild the SPS and have the position functions calculated again without destroying and readding the particles? I noticed in the source the position functions aren’t called if updatable is set to false.

The updates to the background would be rare but I wanted to just have the objects recalculate and rebuild outside the render loop.

Hi @Tyzor

Immutable
Something that is immutable will never change or cannot be changed.
:wink:

That being said, maybe there is a hack to do it, i don’t know :slight_smile: ,
other options are obviously to use a updateable SPS,
or dispose & build new immutable SPS with your changes.

If only a few objects would change then you could use a second smaller SPS for those objects.