Skip to main content

Closest In Sight

Keeps one Actor: the closest one inside the source's view cone. Actors without the position Stat are skipped; if nobody qualifies the list is emptied. Ships for Vector2, Vector2Int, Vector3, Vector3Int.

FieldDescription
Position Stat KeyThe position Stat.
Direction Stat KeyThe source's facing direction.
Direction ThresholdThe minimum dot product between the facing and the direction to the Actor. 1 = straight ahead only, 0 = a 180° cone, −1 = all around.
Distance CapThe maximum distance.