Decals and hit reactions
What a hit that does not break a prop does - Push When Hit and the HitReaction module with its bounded impulse, the reaction request, and deterministic impact decals set on the shared Material with a per-object limit.
Most hits in a melee-heavy game do not destroy an object. SDF answers them in four ways: the prop’s hit sound and hit effect at the struck point (see Audio and Niagara and VFX), an optional push, and optional impact decals. This page covers the push and the decals. Both are off by default.
Push When Hit
Push When Hit makes a hit that does not break a simulated prop push it: a barrel struck too lightly to break rocks and slides, a hanging cage sways. It is off by default, as in SDF 1.0: such a hit leaves the prop where it is.
- It is offered in section 2. How Does It React? of Create Destructible, in the batch, and
in Modify Destructible…; the console command
SDF.ModifyDestructibletakesPush=0orPush=1. - Ticked, the prop’s hit reactions are on and a bounded share of the hit’s impulse moves it — when the prop simulates physics. A static prop does not move.
- The setup records the choice, so Regenerate and Modify keep it. On the generated setup it becomes the Override Push When Hit exception, unless the picked Behavior already pushes, in which case nothing is added.
- One setup or one placed copy can switch it on or off with Override Push When Hit in its Overrides or Instance Overrides. See Exceptions for one setup or one prop.
An indestructible prop still reacts to every hit and is pushed, so the player reads “this does not break”, not “nothing happened”. A hanging prop on an SDF Breakable Attachment is set swaying by a hit that pushes it; see Hanging props.
The HitReaction module
On a shared Behavior, hit reactions are the HitReaction module: add it to the Behavior’s
Modules and every prop using that Behavior reacts; without it, the function is off. Its settings
have no exception: to tune them for one kind of prop, duplicate the Behavior and pick the duplicate.
A setup without a Behavior carries the same settings on its own profile, where bEnableHitReactions
is the switch (off by default).
| Property | Default | Meaning |
|---|---|---|
MinimumHitReactionPower | VeryLight | Power gate for reactions |
bApplyBuiltInPhysicsReaction | true | Apply a bounded impulse when the intact component already simulates physics |
HitReactionImpulseMultiplier | 0.2 | Fraction of the incoming impulse used |
MaximumHitReactionImpulse | 250.0 | Hard cap on the applied impulse |
When the impulse applies
The impulse never turns simulation on
The built-in impulse is applied only when the intact primitive component is simulating physics at that moment. A hit reaction never switches simulation on by itself.
Whether the intact simulates is decided by its physics mode, at BeginPlay:
- New generations use
Simulatedby default, so their intact prop is already simulating and the built-in impulse can move it; Static,Keep Existingand older setups that were not migrated are not changed silently — a static prop stays static, and the impulse is skipped;- a prop set to Start At Rest (off by default, Simulated only) keeps still when play begins and wakes as soon as something physically touches it or the prop under it breaks.
See Intact physics and fall damage.
The request is emitted either way. An object that does not simulate physics still reports the reaction, so your own code can play an animation, a shader wobble or a sound instead.
The request payload
FSDFHitReactionRequest:
| Field | Meaning |
|---|---|
SourceActor | The object that was hit |
Location | World-space impact position |
Direction | Direction of the incoming hit |
RequestedImpulse | Impulse computed after multiplier and cap |
DestructionPower | Power of the causing hit |
RandomSeed | Seed for deterministic reaction selection |
bPhysicsImpulseApplied | Whether the built-in impulse was actually applied |
Listen on OnHitReactionRequested, or read GetLastHitReactionRequest on demand.
bPhysicsImpulseApplied tells you unambiguously whether the object moved because of SDF, which is
what your own reaction logic needs in order not to double up.
Typical use
- A hanging lantern that swings when struck — Simulated, on an SDF Breakable Attachment, with Push When Hit.
- A stone statue that shows its hit effect but does not move — reactions on, Physics
Static. - A crate that only reacts to real attacks — raise
MinimumHitReactionPowerabove the value your light attacks carry.
A melee blow the prop holds
Separate from the push, Weapon Recoils When Held lets an indestructible or locked prop send the
weapon back: the melee sender sets bShouldRecoil and fires OnMeleeRecoil, and your character
plays the rebound. See
The world reacting to a break.
Impact decals
Impact decals are part of what a prop is made of: in SDF 2.0 they are set on the shared Material (Souls Destruction > Decals), so every prop of that material marks the same way. A setup without a Material carries the same fields on its own profile. No exception changes decals: to give one kind of prop its own, duplicate the Material into your project content and pick the copy for that setup.
| Property | Default | Meaning |
|---|---|---|
bEnableImpactDecals | false | Master switch: decals are opt-in |
bEnableBuiltInDecalSpawning | true | Disable when an external listener owns decal presentation |
MinimumDecalPower | VeryLight | Power gate |
MaximumImpactDecals | 3 | Per-object limit (0–32) |
ImpactDecals | empty | Weighted variations |
Validation reports sounds, decals or effects switched on with nothing to play (SDF-DATA-030, 031
and 033); see Diagnostics.
Decal variations
FSDFWeightedDecal:
| Property | Default | Meaning |
|---|---|---|
Material | none | Soft UMaterialInterface reference |
Weight | 1.0 | Relative selection weight |
Size | (8, 16, 16) | Decal projection box |
LifeSpan | 20.0 | Seconds before the decal fades out |
FadeScreenSize | 0.01 | Screen size below which the decal stops rendering |
bRandomizeRoll | true | Randomise roll around the projection axis |
Deterministic orientation
SelectWeightedDecalVariation(Variations, RandomSeed, ImpactNormal, OutRotation) picks the variation
and computes the rotation. Decals are projected along the impact normal; with bRandomizeRoll
enabled the roll is derived from the seed, so repeated hits do not produce visibly identical stamps —
and the same seed reproduces the same stamp exactly.
The per-object limit
MaximumImpactDecals caps how many decals one object carries. Once the limit is reached, further
decal requests are still emitted but marked bSuppressedByObjectLimit, so an external system knows
the framework deliberately declined rather than failed.
GetActiveImpactDecalCount returns the current count. Tracked decals are destroyed when the object
is cleaned up, so a destroyed crate does not leave its dents floating in the level.
The request payload
FSDFDecalRequest:
| Field | Meaning |
|---|---|
SourceActor | The object that was hit |
Location | World-space impact position |
ImpactNormal | Projection normal |
Rotation | Resolved rotation |
Size | Resolved projection size |
SelectedMaterial | The variation picked |
RandomSeed | Seed used |
SelectedVariationIndex | Index into the array |
bBuiltInSpawnRequested | Built-in spawning was configured |
bBuiltInSpawnAttempted | A spawn was attempted |
bBuiltInSpawnSucceeded | The decal component was created |
bSuppressedByObjectLimit | The per-object limit declined this request |
Listen on OnImpactDecalRequested, or read GetLastImpactDecalRequest.
In a networked game
The server decides every hit. Each client shows the decals, sounds, effects and damage stages of the props the server altered; a dedicated server shows none of them. See Networked games.
Cost guidance
Decals are cheap individually and expensive in aggregate. In a room with thirty destructible props,
a limit of 3 per object is already up to ninety decal components. Two practical rules:
- keep
MaximumImpactDecalsat1or2for common props, and reserve3+ for hero objects; - keep
LifeSpanshort — a decal that outlives the fight adds cost without adding information.
Last updated: 2026-10-27