GwNavTraversal - stingray.GwNavTraversal namespace reference - Stingray Lua API Reference

stingray.GwNavTraversal namespace reference

Description

Functions allowing to traverse NavMesh triangles

Functions

Parameters

triangle :

stingray.GwNavTriangle

GwNavTriangle to compare.

triangle2 :

stingray.GwNavTriangle

GwNavTriangle to compare.

Returns

boolean

Tells if the triangles are equal

Parameters

triangle :

stingray.GwNavTriangle

The GwNavTriangle for which the neighbors are looked for.

Returns

stingray.GwNavTriangle[]

The GwNavTriangle neighbors

The [] notation indicates that this type is an array: a table in which the keys of the members are sequential integers, and the value of each element is an instance of the type shown.
Parameters

database_or_world :

any(stingray.GwNavWorld, stingray.GwNavDatabase)

The GwNavDatabase where the triangle is look for.

The any(...) notation indicates that this item may be an instance of any of the types shown in the parentheses.

position :

stingray.Vector3

The position the triangle is looked for.

Returns

stingray.GwNavTriangle

The GwNavTriangle at the position if any, or nil

Parameters

triangle :

stingray.GwNavTriangle

GwNavTriangle.

Returns

boolean

Indicates whether or not the NavTag is exclusive: i.e. whether or not it can be navigated.

stingray.Quaternion

Indicates the color of the NavTag.

integer

Indicates the ID of the layer associated with the NavTag.

integer

Indicates the ID of the smartobject associated with the NavTag.

integer

Indicates the userdata associated with the NavTag.

Parameters

triangle :

stingray.GwNavTriangle

The GwNavTriangle for which the neighbors are looked for.

Returns

stingray.Vector3[]

The vertices of the triangle

The [] notation indicates that this type is an array: a table in which the keys of the members are sequential integers, and the value of each element is an instance of the type shown.