Represents a volume that tags the NavMesh dynamically.
Constructors and accessors
Other related reference items
Related help topics
add_to_world ( self )Adds a GwNavTagVolume to its world.
|
self : | 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. |
This function does not return any values. |
create ( nav_world, polyline, min_altitude, max_altitude, is_exclusive, color, layer_id, smartobject_id, user_data_id ) : stingray.GwNavTagVolumeCreates a GwNavTagVolume.
|
nav_world : | The GwNavWorld to create this GwNavTagVolume in. | |
polyline : | table | A table of at least three Vector3 |
min_altitude : | number | Altitude min to extrude the polyline |
max_altitude : | number | Altitude max to extrude the polyline |
is_exclusive : | boolean | Whether the NavTag associated with this obstacle causes the NavMesh to be untraversable. |
color : | The Color you would like the GwNavTagVolume to tag the NavMesh with. 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 GwNavTagVolume. 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 GwNavTagVolume. 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 GwNavTagVolume. Unused if is_exclusive is true. The ? notation indicates that this type is optional: there may be zero or one instances of it. |
The created GwNavTagVolume. |
destroy ( self )Destroys a GwNavTagVolume.
|
self : | 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. |
This function does not return any values. |
get_integration_status ( self ) : stingray.GwNavTagVolume.IntegrationStatusRetrieves integration status of GwNavTagVolume.
|
self : | 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. |
The TagVolume integration status |
navtag ( self ) : boolean, stingray.Quaternion, integer, integer, integerRetrieves information about the NavTag associated with the specified GwNavTagVolume.
|
self : | 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. |
boolean |
Indicates whether or not the NavTag is exclusive: i.e. whether or not it can be navigated. |
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. |
remove_from_world ( self )Removes a GwNavTagVolume from its world.
|
self : | 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. |
This function does not return any values. |
It will not be destroyed, just removed and can be added again later.