Controller-LineOfSightTo(Actor_Vector3_bool).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.Controller

Controller.LineOfSightTo(UnrealEngine.Framework.Actor, System.Numerics.Vector3, bool) Method

Checks line to center and top of other actor

public bool LineOfSightTo(UnrealEngine.Framework.Actor actor, in System.Numerics.Vector3 viewPoint, bool alternateChecks=false);

Parameters

actor Actor
The actor whose visibility is being checked

viewPoint System.Numerics.Vector3
Eye position visibility is being checked from, if System.Numerics.Vector3.Zero is passed in, uses current view target's eye position

alternateChecks System.Boolean
Used only in AIController implementation

Returns

System.Boolean
true if controller's Pawn can see other actor