Get Facing Angle Between

Pure
GetFacingAngleBetween

Returns the angle between each actor's forward vector and the direction to the other actor.

Type: Pure (no side effects)
Category: Fortuna|Gameplay Utilities
Keywords: gameplay utilities

Inputs

NameTypeDefaultDescription
ActorAAActor*ActorA parameter
ActorBAActor*ActorB parameter

Outputs

NameTypeDescription
AngleFromAToBfloatAngleFromAToB output
AngleFromBToAfloatAngleFromBToA output

Example Use Cases

Example 1

Flanking detection (is attacker behind defender?).

Example 2

Determine if two characters are facing each other.