Roll and collision integration

Drive destruction from movement - rolls, dashes, charges and thrown objects - with the SDF Body Hit and SDF Body Window kit or USDFCollisionHitSenderComponent, its speed gate and bounded impulse, and how it differs from the 2.0 body contacts.

A dodge roll through a pot breaks it; a charging enemy smashes a barricade; a boulder rolled at a crate breaks it. USDFCollisionHitSenderComponent (SDF Collision Hit Sender) bridges these movement-driven contacts to SDF. Contact detection stays in your movement code.

Body contact needs no code

For a character’s body simply touching, standing on or landing on a prop, SDF 2.0 has the Contact module of a Behavior: no sender and no code. See Bodies against props. Use the collision sender when your game decides that an action (a roll, a charge, a throw) is a hit, with its own damage and power.

The quickest way: SDF Body Hit

New in 2.0.1, the integration kit breaks props with a character’s roll, charge or barge without code. Place the SDF Body Window notify state on the roll’s montage, over the frames whose body should break props. That is all: a character without SDF Body Hit (USDFBodyHitComponent) gets one when the window first opens.

  • While the window is open, whatever the character’s capsule (or the Body component you pick) runs into or through - a prop’s collision, or its hit assist - is sent through the character’s SDF Collision Hit Sender (one is added if it has none), with the character’s speed, once per part of a prop per window. A prop it already stands in when the window opens is struck too.
  • To choose the body’s strength, add SDF Body Hit yourself: Damage (0: a roll breaks what its power allows and takes no health) and Destruction Power (Light). Tick Override Power on a notify for a move that hits harder, a charge.
  • The sender’s Minimum Contact Speed (200 cm/s) refuses a contact slower than a walk. Outside a window, walking into a prop does nothing here: use the Contact module for that.
  • From Blueprint, Begin SDF Body Window, Begin SDF Body Window With Power and End SDF Body Window do the same. In a networked game a window opens on the server and in single player only.

See Your own character. The steps below are what it does, for a contact you detect yourself.

Setup

  1. Add SDF Collision Hit Sender to the moving Actor.
  2. Configure HitSettings.
  3. Call Begin SDF Collision Window when the action starts (roll, dash, charge).
  4. Call Send SDF Collision Hit for each contact your capsule sweep or overlap reports.
  5. Call End SDF Collision Window when the action ends.

No tick and no timer. The window is explicit state, like the melee swing.

Hit settings

FSDFCollisionHitSettings:

PropertyDefaultMeaning
MinimumContactSpeed200.0 cm/sContacts slower than this are refused before reaching the target
ImpulsePerSpeedUnit1.0Converts source speed into the payload’s impulse
MaximumImpulseStrength1200.0Hard cap on the computed impulse
DamageTypenoneOptional engine damage type
GameplayTagsemptyTags carried with the hit. SDF.Source.Collision is always added
bRequireActiveCollisionWindowtrueContacts are accepted only inside an opened window
bSuppressRepeatedActorsPerWindowtrueOne Actor receives at most one hit per action

Speed, damage and power are independent

Send SDF Collision Hit takes Damage and DestructionPower as explicit parameters, decided by the caller for that action. Speed does not scale them.

Speed does three things:

  1. it gates the contact through the sender’s MinimumContactSpeed;
  2. it produces the impulse, as Speed × ImpulsePerSpeedUnit, clamped to MaximumImpulseStrength;
  3. it is sent as the hit’s Impact Speed, so the prop’s own Minimum Impact Speed (300 cm/s on the built-in Behaviors) applies too: a slower contact returns Too Slow.

Why this split

A slow, deliberate shoulder charge should be able to smash a door that a fast, weightless dodge roll cannot. Tying destructive capability to raw velocity would make that impossible to express.

Sending a contact

Send SDF Collision Hit parameters:

ParameterNotes
TargetActorOptional when HitResult contains an Actor
HitResultSupplies impact point and normal
SourceVelocityWorld velocity in cm/s, usually GetVelocity()
DamageChosen per action
DestructionPowerChosen per action
InstigatorControllerController credited with the hit
DamageCauserThe moving Actor
SourceObjectAny UObject; for example the montage or ability driving the move
RandomSeed-1 to generate one

The direction of the payload is derived from the velocity, so debris scatters the way the body was actually moving.

Result: FSDFCollisionDeliveryResult: bDelivered, bSuppressedAsDuplicate, bRejectedBecauseWindowInactive, bRejectedBelowMinimumSpeed, bTargetSupportsDestruction, ContactSpeed, Target, SentHit and DestructionResult. The prop’s answer and its RejectionReason are in DestructionResult; Describe SDF Result turns it into one sentence.

ContactSpeed is reported even when the contact was refused, which makes tuning MinimumContactSpeed straightforward: log a few real rolls and read the numbers.

On Component Hit reports a slowed body

A contact reported by On Component Hit arrives after the physics solver has already slowed the body, often below Minimum Contact Speed. Send the speed of the charge or of the throw, toward the prop, rather than the velocity read at the hit. The Integration Examples’ rolling boulder does this.

What the prop does with it

  • Defense. Damage Threshold Blocks Break never holds back a hit tagged SDF.Source.Collision, this sender’s included: its power decides.
  • Who may break it. Allowed Breakers judges whoever dealt the hit, the Instigator’s pawn or the Damage Causer when it is a pawn. A refused hit makes the prop react and returns Not Allowed Breaker.
  • Filtering. Filter on SDF.Source.Collision in OnDestructionDamageReceived to tell these hits from the others.

See Who may break a prop, and how hard.

Duplicate protection

A capsule sliding along a crate generates overlap events every frame. With bSuppressRepeatedActorsPerWindow enabled, only the first contact per Actor per window is delivered. Begin SDF Collision Window clears that history, so the next roll can hit the same object again. A boulder bouncing on the crate it just broke is not another hit.

Worked example

Three movement states, one component, against the built-in Fragile (a pot) and Normal (a crate) Behaviors:

StateSpeedDamagePowerFragile potNormal crate
Walkingbelow MinimumContactSpeednonenoneNot deliveredNot delivered
Runningabove both speed gateslowVeryLightBreaksReacts only: Power Too Low
Rollabove both speed gatesmoderateLightBreaksBreaks

A Sturdy prop, with 100 health, takes several such hits. The exact numbers belong to your game. What the framework guarantees is that the walking case never reaches the destructible at all, and that the roll and run cases differ by intent rather than by accident of velocity.

The Integration Examples map’s Rolling Boulder station (BP_SDF_Example_RollingBoulder) rolls a boulder at a crate and sends the contact with Damage 100 and Power Heavy. See Integration examples.

Blueprint example

Roll montage starts
    -> SDF Collision Hit Sender -> Begin SDF Collision Window

Capsule sweep reported a Hit Result
    -> SDF Collision Hit Sender -> Send SDF Collision Hit
         Target Actor       = Hit Result -> Hit Actor
         Hit Result         = Hit Result
         Source Velocity    = the roll's velocity
         Damage             = 10.0
         Destruction Power  = Light
         Instigator         = Get Controller
         Damage Causer      = self
         Source Object      = RollMontage
         Random Seed        = -1

Roll montage ends
    -> SDF Collision Hit Sender -> End SDF Collision Window

C++ example

CollisionSender->BeginCollisionWindow();

const FSDFCollisionDeliveryResult Delivery = CollisionSender->SendCollisionHit(
    HitResult.GetActor(),
    HitResult,
    RollVelocity,
    /* Damage */ 10.f,
    ESDFDestructionPower::Light,
    GetController(),
    this,
    RollMontage,
    /* RandomSeed */ -1);

if (Delivery.bRejectedBelowMinimumSpeed)
{
    UE_LOG(LogTemp, Verbose, TEXT("Contact at %.0f cm/s was below the gate"), Delivery.ContactSpeed);
}

CollisionSender->EndCollisionWindow();

Listening to deliveries

OnCollisionHitDelivered broadcasts every delivery result, which is a convenient place to trigger movement feedback: a small camera shake when a roll actually smashes something.

In a networked game

The server decides every break: a contact sent on a client changes nothing, and its result says Server Decides. Send it on the server, or through your own server RPC. See Networked games.

Last updated: 2026-10-29

Type to search titles, sections and keywords.