Skip to content

LineOfSightUtility ​

Inherits: RefCounted

Centralized line of sight checking for abilities and AI detection

Variables ​

intLOS_COLLISION_MASKCollisionLayerUtility._get_mask([

Methods ​

boolhas_line_of_sight( from_pos: Vector3, to_pos: Vector3, world: World3D, exclude_objects: Array = [] ) static
boolhas_entity_line_of_sight( from_entity: Variant, to_entity: Variant ) static

Variable descriptions ​

int LOS_COLLISION_MASK = CollisionLayerUtility._get_mask([ ​

Line of sight collision mask - only things that block vision

Method descriptions ​

bool has_line_of_sight( from_pos: Vector3, to_pos: Vector3, world: World3D, exclude_objects: Array = [] ) ​

Check if there's a clear line of sight between two positions

bool has_entity_line_of_sight( from_entity: Variant, to_entity: Variant ) ​

Check LOS between entities