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.ModifyDestructible takes Push=0 or Push=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).

PropertyDefaultMeaning
MinimumHitReactionPowerVeryLightPower gate for reactions
bApplyBuiltInPhysicsReactiontrueApply a bounded impulse when the intact component already simulates physics
HitReactionImpulseMultiplier0.2Fraction of the incoming impulse used
MaximumHitReactionImpulse250.0Hard 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 Simulated by default, so their intact prop is already simulating and the built-in impulse can move it;
  • Static, Keep Existing and 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:

FieldMeaning
SourceActorThe object that was hit
LocationWorld-space impact position
DirectionDirection of the incoming hit
RequestedImpulseImpulse computed after multiplier and cap
DestructionPowerPower of the causing hit
RandomSeedSeed for deterministic reaction selection
bPhysicsImpulseAppliedWhether 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 MinimumHitReactionPower above 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.

PropertyDefaultMeaning
bEnableImpactDecalsfalseMaster switch: decals are opt-in
bEnableBuiltInDecalSpawningtrueDisable when an external listener owns decal presentation
MinimumDecalPowerVeryLightPower gate
MaximumImpactDecals3Per-object limit (0–32)
ImpactDecalsemptyWeighted variations

Validation reports sounds, decals or effects switched on with nothing to play (SDF-DATA-030, 031 and 033); see Diagnostics.

Decal variations

FSDFWeightedDecal:

PropertyDefaultMeaning
MaterialnoneSoft UMaterialInterface reference
Weight1.0Relative selection weight
Size(8, 16, 16)Decal projection box
LifeSpan20.0Seconds before the decal fades out
FadeScreenSize0.01Screen size below which the decal stops rendering
bRandomizeRolltrueRandomise 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:

FieldMeaning
SourceActorThe object that was hit
LocationWorld-space impact position
ImpactNormalProjection normal
RotationResolved rotation
SizeResolved projection size
SelectedMaterialThe variation picked
RandomSeedSeed used
SelectedVariationIndexIndex into the array
bBuiltInSpawnRequestedBuilt-in spawning was configured
bBuiltInSpawnAttemptedA spawn was attempted
bBuiltInSpawnSucceededThe decal component was created
bSuppressedByObjectLimitThe 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 MaximumImpactDecals at 1 or 2 for common props, and reserve 3+ for hero objects;
  • keep LifeSpan short — a decal that outlives the fight adds cost without adding information.

Last updated: 2026-10-27

Type to search titles, sections and keywords.