Skip to main content

AB1PhysicsActor

Overview

  • An actor that flows 'idle -> active on collision -> restore after a while'. The Pawn capsule only detects via overlap to wake the physics simulation. When an actual blocking collision with the body/vehicle then occurs, OnHit applies an impulse and starts the restore timer. The restore timer is paused during the destruction effect (UB1DestructionComponent) and restarted when it ends.

Metadata

FieldValue
Kindclass
EnvironmentB1 - Presentation
Categoryclasses
ExtendsAActor

Properties (2)

NameTypeDescription
ResetDelayTimenumberRestore wait time (default 10 seconds).
StaticMeshanyMesh subject to physics simulation.

Functions (3)

FunctionParametersReturnsDescription
OnBeginOverlapOverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComponent: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult-Overlap event handler.
OnHitHitComponent: UPrimitiveComponent, OtherActor: AActor, OtherComponent: UPrimitiveComponent, NormalImpulse: FVector, Hit: FHitResult-Hit event handler.
ResetToInitialTransform--Restores to the initial location.