Skip to content

Class: rq_result ​

Result object filled by level ray queries.

Source ​

src/xrGame/raypick.h, script_rq_result.

Custom Constructor ​

rq_result

Remarks ​

A new result starts with object = null, range = 0, and element = 0. level.ray_pick updates it only when the query returns true.

Extends ​

Constructors ​

Constructor ​

ts
new rq_result(): rq_result;

Create an empty ray query result.

Returns ​

rq_result

Overrides ​

EngineBinding.constructor

Properties ​

__name ​

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from ​

EngineBinding.__name


element ​

ts
readonly element: number;

Hit model element id, or 0 when the hit has no element.


object ​

ts
readonly object: Nullable<game_object>;

Hit object, or null when the hit is not a game object.


range ​

ts
readonly range: number;

Distance from ray origin to the hit.


__name ​

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from ​

EngineBinding.__name