How to spawn colliding geometry collection ?

Hello,

I’m trying to spawn a geometry collections at runtime when an object is “broken” in-game.
When spawned at runtime, there are no collisions, even if set to Enabled (Querry and physics) and all objects responses are set to “block”.
I tried to spawn it as GeometryCollectionActor and as GeometryCollectionComponent.
I also tried to spawn some Field right after it : it doesn’t interact either. No damages.

Am I missing something ? How should I spawn the collections ?

I found the following solution :

  1. I add the collection to the building part blueprint as a component from the beginning. This way, collisions work.
  2. I set the relative scale to 0 and disable “Simulate physics”.
  3. When the building is destroyed, I scale it back to 1,1,1 and and enable “Simulate Physics”.

This way, I can break building parts in a realistic way and at the same time have it rendered as a simple mesh with LODs and custom pass (for highlighting or other FX) when intact.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.