Calculate Lead Aim Position
PureCalculateLeadAimPositionCalculates where to aim to hit a moving target with a projectile of known speed.
Type: Pure (no side effects)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| ShooterPosition | FVector | — | ShooterPosition parameter |
| TargetPosition | FVector | — | TargetPosition parameter |
| TargetVelocity | FVector | — | TargetVelocity parameter |
| ProjectileSpeed | float | — | ProjectileSpeed parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| AimPosition | FVector | AimPosition output |
| bSolutionFound | bool | bSolutionFound output |
Example Use Cases
Example 1
AI leading shots on a moving player.
Example 2
Auto-aim assist for slow projectiles.