This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

WorldSector Class

Creates a box-shaped sector. When the player is inside of it, everything outside its volume is culled. If a surface is even partly outside the sector, it is culled as well.

WorldSector Class

Members


WorldSector (vec3 dimensions)

Constructor. Creates a new world sector with given dimensions.

Arguments

  • vec3 dimensions - Dimensions of the new world sector. If negative values are provided, 0 will be used instead of them.

Node getNode (int id)

Returns a specified node contained in the world sector.

Arguments

  • int id - Number of the node in range from 0 to the total number of nodes.

Return value

Specified node.

Node getNode ()

Returns a specified node contained in the world sector.

Return value

Specified node.

void setSize (vec3 size)

Updates the current dimensions of the world sector.

Arguments

  • vec3 size - Dimensions of the world sector. If negative values are provided, 0 will be used instead of them.

vec3 getSize ()

Returns the current dimensions of the world sector.

Return value

Current dimensions.

int getNumWorldPortals ()

Returns the number of world portals adjacent to the world sector.

Return value

Number of portals.

WorldPortal getWorldPortal (int id)

Returns a specified world portal adjacent to the world sector.

Arguments

  • int id - Number of the portal in range from 0 to the total number of portals.

Return value

Specified portal.

int getNumNodes ()

Returns the number of nodes contained in the world sector.

Return value

Number of nodes.
Last update: 2017-07-03
Build: ()