Skip to content

YaQueryResult

Queries the entity which the ray hits and the entity's position and distance.

Properties

YaEntity Entity

The entity that is hit by the ray. Returns YaEntity.Empty if there is none.

float3 Position

The position of the point where the ray hits

float3 Normal

The normal line to the surface which the ray hits

number Distance

The distance between the ray's origin and the hit position

Functions

boolean IsStaticObject()

ReturnsIs Static Object
Return false if the object is a static collision which does not contain entity. Return true if the object is entity.