A zone allows you to define an area that requires one or more Ability to traverse using pathfinding. Each zone contains a cost specified by the user; as a result based on that cost, the Navigation paths computed can drastically vary since the system will always choose the path of less resistance (based on cost); in other words the lower the cost the better the path.
Additionally, a zone can be used as a junction that connects one or more Map together. At Navigation query time theses junctions can be used to extend the Navigation path to other Map.
See Also
Name | Description |
---|---|
map | Current Map where the active Zone is maintained. |
sector_count | Total amount of Sector maintained by the current Zone. |
type | Identity the Zone type. |
uid | Unique id to identify the Zone globally. |
Name | Description |
---|---|
junction | Determine wether or not the Zone should be used as a junction that connect multiple Map togheter. |
name | Name to identify the current Zone within its parent Map. |
ability_mask | Bit mask created from Ability caps that specifies the required Ability to pass the Zone. |
cost | Value that represent the cost of the current Zone and subsequent Sector. |
color | A color to visually identify the Zone and Sector inside the editor viewport. |
Name | Description |
---|---|
AddSector | Add a new Sector to the active Zone. |
GetSectorAt | Function that return the reference of a Sector pointed by index. |
GetSectorAtLocation | Return the reference of a Sector that is located at an arbitrary point in space. |
GetSectorIndex | Function that retrieve the internal index of an existing Sector. |
RemoveSector | Remove a Sector from the current Zone. |
RemoveSectorAt | Remove a Sector from the active Zone using its internal index as key. |
BuildSector | Function that build an existing Sector. |
AddPoint | Add a control point to a specific Sector. |
ClearPoints | Clear the controls points associated to a specific Sector. |
CreateOutline | Create the outline of a Sector based on the control points associated to it. |
UpdateOutline | Update the height of an existing Sector outline. |
Header data associated with each Tile representing their location on the Map.
Name | Description |
---|---|
x | The X coordinate of the Tile. |
y | The Y coordinate of the Tile. |
layer | Layer index where Tile is located. |
Header data associated with each Tile representing their location on the Map.
Name | Description |
---|---|
point_count | Total amount of control points the Sector contains. |
min | Bottom left corner of the Sector AABB. |
max | Top right corner of the Sector AABB. |
height_offset | Amount of extrusion applied to the Sector. |
|