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
| Field | Value |
|---|---|
| Kind | class |
| Environment | B1 - Presentation |
| Category | classes |
| Extends | AActor |
Properties (2)
| Name | Type | Description |
|---|---|---|
ResetDelayTime | number | Restore wait time (default 10 seconds). |
StaticMesh | any | Mesh subject to physics simulation. |
Functions (3)
| Function | Parameters | Returns | Description |
|---|---|---|---|
OnBeginOverlap | OverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComponent: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult | - | Overlap event handler. |
OnHit | HitComponent: UPrimitiveComponent, OtherActor: AActor, OtherComponent: UPrimitiveComponent, NormalImpulse: FVector, Hit: FHitResult | - | Hit event handler. |
ResetToInitialTransform | - | - | Restores to the initial location. |