GwNavBoxObstacle - stingray.GwNavBoxObstacle object reference - Stingray Lua API Reference

stingray.GwNavBoxObstacle object reference

Description

Represents a dynamic box obstacle.

Functions

Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.
Parameters

nav_world :

stingray.GwNavWorld

The GwNavWorld that this obstacle will belong to.

position :

stingray.Vector3

The position of the obstacle.

local_center :

stingray.Vector3

The center of rotation of the obstacle.

half_extents :

stingray.Vector3

The half extents of the box obstacle.

is_exclusive :

boolean

Whether the NavTag associated with this obstacle causes the NavMesh to be untraversable.

color :

stingray.Quaternion?

The Color you would like the obstacle to tag the NavMesh with. Use stingray.Color(r,g,b) to create a color. If nil, default color is applied. Unused if is_exclusive is true?

The ? notation indicates that this type is optional: there may be zero or one instances of it.

layer_id :

number?

The layer you would like to associate with this obstacle. Unused if is_exclusive is true?

The ? notation indicates that this type is optional: there may be zero or one instances of it.

smartobject_id :

number?

The smartobject you would like to associate with this obstacle. Unused if is_exclusive is true?

The ? notation indicates that this type is optional: there may be zero or one instances of it.

user_data_id :

number?

The user data you would like to associate with this GwNavBoxObstacle. Unused if is_exclusive is true?

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

stingray.GwNavBoxObstacle

The created obstacle.

Parameters

nav_world :

stingray.GwNavWorld

The GwNavWorld that this obstacle will belong to.

position :

stingray.Vector3

The position of the obstacle.

local_center :

stingray.Vector3

The center of rotation of the obstacle.

half_extents :

stingray.Vector3

The half extents of the box obstacle.

Returns

stingray.GwNavBoxObstacle

The created obstacle.

Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.
Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns

stingray.GwNavTagVolume.IntegrationStatus

Integration status of GwNavBoxObstacle's internal GwNavTagVolume.

Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.
Returns
This function does not return any values.

The obstacle is not destroyed, it will simply be ignored.

Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.

angular_velocity :

stingray.Vector3

The angular_velocity of the obstacle.

Returns
This function does not return any values.
Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.

does_trigger :

boolean

Whether or not this obstacle punches a hole in the DynamicNavMesh.

Returns
This function does not return any values.

If true, the NavMesh will actually be modified by this GwNavBoxObstacle.

Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.

linear_velocity :

stingray.Vector3

The linear velocity of the obstacle.

Returns
This function does not return any values.
Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.

rotates_around_yaw :

boolean

If true the obstacle will only rotate around the up axis of the world (e.g. 0,0,1 by default).

Returns
This function does not return any values.
Parameters

self :

stingray.GwNavBoxObstacle

Specifies the object instance that this function will act on.

You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation.

transform :

stingray.Matrix4x4

The transform of the the obstacle.

Returns
This function does not return any values.