Runtime glass fracture

The Glass destruction mode — shards cut at runtime around the point struck and thrown out of the pane, glass effects, shard landing sounds, every FSDFGlassFractureSettings property, windows with their frame, and glass in a batch.

Strike a window and it cracks around the point you hit: radial cracks and rings spread from the blow, the pane falls apart into real glass shards, they fly out of the window away from the side you struck, glint, and tinkle as they land on the floor. The stone or lead frame stays standing. A blow that does not break the pane shows a few small shards and sparkles by the point struck.

Glass cannot be pre-fractured the way wood or stone are: the crack pattern radiates from wherever the blow lands, and that point is unknown until the hit arrives. The Glass destruction mode therefore bakes nothing. When a hit breaks a pane, SDF builds a radial-and-ring crack pattern around the actual impact point, cuts the pane into shards and spawns each shard as a real simulated rigid body with convex collision.

  • The pattern is deterministic for a given seed: the hit’s seed is used by default, so a replay, or every machine of a networked game, cracks the pane into the same shards.
  • Shards ignore pawns by design: the player never trips over broken glass.
  • Shards stay where they fall by default, like every SDF debris. See Cleanup.

The mode is selected on the setup (Destruction Mode Glass) and tuned by one struct, FSDFGlassFractureSettings (Glass Settings), on the same profile. The Glass authoring preset publishes it for you; see Authoring presets.

Shards leave the pane

A broken pane’s shards are thrown out of its plane, away from the side struck, whichever way the blow travelled; the blow’s travel along the pane only leans them. A sword slashing across a window no longer drives the shards along it into the window’s own frame, where in SDF 1.0 some settled standing. As they leave, the shards pass through the frame of the window they broke from for a moment, then collide with it again.

Glass effects

Glass has its own effects, as wood does:

  • When it breaks, NS_SDF_Impact_Glass throws thin glinting shards and a spray of sparkles, and no dust. The pane’s physical shards fall as well.
  • On a hit that does not break it, NS_SDF_Hit_Glass shows a few small shards and sparkles by the struck point, gone within a second.
  • The effect shards use M_SDF_GlassShard: pale green, nearly clear, with sharp highlights. Its Tint, Opacity and Roughness parameters change the glass, in a Material Instance.
  • The sparkles use M_SDF_GlassGlint_Sprite, added onto what is behind. Its Intensity parameter makes them brighter or dimmer; the particle colour tints them.
  • The effect shards collide on the Camera channel, like the wood splinters, so they pass through the broken pieces and the invisible hit box of a prop that does not break.

The supplied Glass material, the Glass and Glass Vessel Runtime templates, and the demo bottles and stained glass select these effects. To change them for your own glass, see Niagara and VFX.

Shard landing sounds

The shards of a broken pane are heard landing on a floor — a surface within 45 degrees of horizontal — at most Maximum Shard Landing Sounds times per pane: once by default, 0 to keep them silent, up to 18. Each landing emits a Debris Impact audio request and plays the Material’s Debris Impact Sounds. The supplied Glass material and the demo stained glass play SC_SDF_Glass_Shard_Landing, five variations of shards tinkling onto stone.

  • Shards knocking each other, or settling on the frame or sill of the window they broke from, are not landings.
  • Maximum Shard Landing Sounds lives on the Material. One setup or one placed window can set its own cap with the Shard Landing Sounds exception (Exceptions).
  • A Surface Responses table on the Material can pick the landing sound by the surface the shard lands on. See Audio.

Pattern properties

All distances are centimetres.

PropertyDefaultMeaning
ImpactRadius45.0Radius of the shattered zone around the impact. Pane area beyond it is still consumed by the outer shards, so a small radius means a few large pieces, not a hole
RadialCrackCount9Cracks running outward from the impact (3 to 24). Odd counts read better: an even fan looks machined
RingCount3Concentric cracks crossing the radials (1 to 6). Rings grow apart as they leave the impact
ShardCountMin8Floor on the produced shard count (1 to 64)
ShardCountMax18Ceiling on the produced shard count (1 to 64). Every shard is simulated, so this is also the body budget
PositionJitter0.35Radial displacement of each pattern vertex, as a fraction of its ring spacing
AngleJitter0.30Angular wobble of each radial crack, as a fraction of the angle between two cracks
RandomSeedOverrideINDEX_NONEOverrides the seed carried by the hit. The default keeps the hit’s seed

Shard thickness

PropertyDefaultMeaning
GlassThickness0.6Fallback thickness when the source pane is too thin to measure
bPreserveSourceThicknesstrueUse the measured thickness of the source pane when it exceeds the minimum below
MinimumMeasurableThickness0.15Below this the source thickness is treated as unmeasurable and GlassThickness is used

A shard with no volume has no valid convex hull and cannot be simulated, which is why a fallback thickness exists at all.

Shard physics

PropertyDefaultMeaning
ImpulseStrength320.0Base impulse magnitude before distance weighting
RadialImpulseBias0.6Share of the impulse pushing each shard away from the impact point, within the pane plane
NormalImpulseBias1.0Share of the impulse pushing each shard out of the pane
DirectionNoise0.18Random noise added to each shard’s direction, as a fraction of the impulse
NearImpactImpulseMultiplier2.6Shards near the impact carry this multiple of the base impulse; distant ones carry 1.0
AngularVelocityMin90.0Minimum random spin, degrees per second
AngularVelocityMax540.0Maximum random spin

Cleanup: Debris Behavior

Glass shards follow the prop’s Debris Behavior, like every other SDF debris: Debris: keep, remove, budget and rest.

  • Keep Debris in World (the default): the shards settle where they fall and stay. They are frozen once at rest, and a checkpoint reset rebuilds the pane.
  • Remove Debris After Delay: shards are removed one by one, from Start Removing After (seconds), spread over Removal Spread (seconds). With Shrink Before Removal (seconds), a shard stops where it lies and shrinks to nothing before it goes.
  • Settled shards are never evicted unless your project deliberately turns on settled-debris eviction in the budget limits, where MaxSettledDebrisActors then applies.

Older glass setups may still carry the legacy lifetime fields bPersistentShards, ShardLifetimeMin (4) and ShardLifetimeMax (8): one random delay for all the shards of a pane at once, rather than per shard. They are kept for compatibility and are no longer shown for editing; their Debris Behavior summary identifies that contract. Once Debris Behavior is authored on the setup, it takes precedence.

The glass composite Actor

A stained glass window is not one destructible: it is a stone surround, lead tracery and several independent panes. When the Glass preset commits a multi-material source mesh, the pipeline splits it by material islands and publishes an ASDFGlassCompositeActor Blueprint instead of a single-pane setup:

  • islands on a structural material slot become the frame: one Static Mesh component with no destructible component, so stone and metal survive every blow by construction rather than by configuration;
  • every glass island becomes an independent pane with its own USDFDestructibleComponent. Hit routing resolves the touched primitive (the hit’s HitComponent) to the destructible that owns it, so a blow to the left pane shatters the left pane alone.

A composite window is a fixed structure of several regions and cannot move as one body: it is published with Physics Static (SDF-AUTH-PHYS-003).

MemberMeaning
GetPanelCount()Number of independent panes
GetPanelComponent(Index)The pane’s Static Mesh component
GetPanelDestructible(Index)The pane’s destructible component
GetFrameComponent()The unbreakable frame component
FrameMeshStructural mesh
PanelMeshesOne Static Mesh per pane
PanelProfileGlass runtime-fracture profile shared by every pane

Which materials count as structure

A slot whose slot name or material name contains Stone, Metal, Lead, Iron, Frame or Wood becomes frame; every other island becomes a pane. The Glass preset holds this list in PreservedMaterialSlotNames; matching is a case-insensitive substring test. Adjust the list on your own preset to match your naming conventions.

Glass in a batch

Select the windows in the Content Browser, open Batch Generate…, choose the Glass preset, then Preflight All. Each window is published as Create Destructible would publish it alone: a single pane, or, for a window modelled with its stone, lead or iron surround, a composite with one unbreakable frame and one mesh per pane, each pane breaking on its own.

  • Preflight says which, with the number of panes (SDF-BATCH-GLASS-001). No Geometry Collection is baked, so TargetFragmentCount is 0 in the report: the shards are cut at runtime.
  • A mesh that is not a flat pane is refused before the run (SDF-BATCH-GEN-002, with the reason). Generate bottles and lanterns with Glass Vessel, in a batch of their own.
  • Preflight checks every name a window will publish, frame and panes included (SDF-BATCH-GEN-003).
  • A window that fails during the run leaves none of its assets behind. The next window still runs.

See Batch authoring.

Preserved slots on vessels

The pre-baked Glass Vessel preset uses the same mechanism: a stopper on a slot whose slot name or material name contains Cork, modelled as a disconnected island, is released whole instead of being cut with the glass. A corked bottle breaks around its stopper; a vessel with no cork-named slot fractures as before.

Limitations

  • The runtime pane generator handles thin, roughly planar panes, with Allow CPU Access on the source Static Mesh (SDF-AUTH-SRC-014); without it, shards are cut to the bounding rectangle and all use slot 0. Curved shells — bottles, lanterns — use the pre-baked Glass Vessel path instead.
  • Every shard is simulated: budget with ShardCountMax.
  • Glass panes have no collection: they show no Collision Shape, their Preview window shows the report only, and Anchored Base Height and Partial Break do not apply to them.
  • Characters do not push glass shards, and glass shards are not remembered by Broken props remembered: a pane loaded already broken shows no shards.

Last updated: 2026-10-27

Type to search titles, sections and keywords.