How to destruct/shoot a model piece by piece?

Hi guys,

How would you approach such task: let’s say I have a model of a car engine and I want to be able to gradually destroy (fracture and explode using chaos or apex physics engine) every single piece of it step by step.

So first I’m shooting at pipes and destroying them, then shooting at upper lid and destroying it, then shooting inner parts one by one. How would you suggest doing it?

I tried pre-fracturing all destructible elements using APEX, but since they’re all sitting quite tight to each other - when one explodes - the others also being affected and start to crumble even though I’m not shooting at them. Is there a way to avoid that?

Thanks in advance!

You can make destruction somewhat granular but fiddling is required:

the others also being affected and start to crumble even though I’m not shooting at them. Is there a way to avoid that?

You can set minimum damage thresholds for each destructible - and disable fracturing from impacts. This way only your actions will affect them.

Just make a blueprint and decide what gets destroyed on it manually.

You can either do this with collisions from a projectile or a trace from the gun.

An interface for interaction would prevent casting and other issues.

The logic behind it would be individualized at the component level:
Was I hit? Destroy me and play whatever effect needed. Spawn a pysics simulated mesh of me, apply force to make it react with physics.

No real need for messy Chaos or Apex systems this way.

Also, it allows you to build models with unlimited number of parts you can interact with.

Be warned though:

The best approach for performance is to create a “manager”.
You add the manager to the blueprint.
The manager automatically does the job the individual parts would otherwise do.

This is so you add mesh components instead of child actors.
There are limits to how many actors you can have, while the limits on components are far higher.

As such, adding a single child actor (the manager) which automatically handles the response of all added components of the blueprint is preferable.

1 Like

Thanks a lot for this info it definitely makes sense and I think I will try the manager/interface solution!

But I think for now as I’m on a quick prototyping stage now rather, I will go with Everynone’s solution (unchecking impact option to to make sure nearby destructible objects are not being affected) as it’s really straightforward and more than enough for now.

Thanks a lot!

1 Like

That worked! Thanks a lot man!

1 Like