Get Physics Material At Hit
PureGetPhysicsMaterialAtHitExtracts the physical material and surface type from a hit result.
Type: Pure (no side effects)
Category: Fortuna|Physics & Collision
Keywords: physics & collision
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| HitResult | FHitResult | — | HitResult parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| PhysMaterial | UPhysicalMaterial* | PhysMaterial output |
| SurfaceType | EPhysicalSurface | SurfaceType output |
| bValid | bool | bValid output |
Example Use Cases
Example 1
Determine bullet impact effects (sparks on metal, dust on dirt).
Example 2
Play surface-appropriate footstep sounds.