Skip to content

Parameters and their details ​

This page explains the overview of each parameter configurable in InstantDestructionSimple (and the base class BaseDestruction).

Physics Settings ​

Parameter NameTypeDefaultRecommended        Description
Use Gravitybooltrue-Determines whether gravity is applied to the fragments.
Explosion Speedfloat2.00.3 - 2.0Sets the strength of the explosion. This becomes the initial velocity when fragments scatter.
Impact Strengthfloat0.30.0 - 5.0Sets the strength of the force pushing fragments in the direction of the impact.

Explosion Speed Comparison (From left to right: 0.0, 0.3, 0.5, 1.0, 5.0)

PhysicsSettings

Effect Settings ​

Parameter NameTypeDefaultDescription
Dust Particle PrefabGameObjectDestructionLineParSets the particle effect to be instantiated upon destruction.
Destruction Audio ClipAudioClipfootstep_carpet_001Sets the sound effect to be played upon destruction.
Destruction Audio Volumefloat0.5Sets the playback volume of the destruction sound.

After Destruction Settings ​

Parameter NameTypeDefaultDescription
After Destruction ModeEnumResetSets the behavior mode after destruction (see details below).
After Destruction Timefloat1.5Sets the wait time (in seconds) from the moment of destruction until the process set in the mode above is executed.

💡 After Destruction Mode Options:

  • Nothing: Leaves the fragments as they are after destruction.
  • Destroy: Completely deletes the GameObject from the scene after the set time elapses.
  • Reset: Automatically restores the object to its pre-destruction state after the set time elapses, making it reusable.