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
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-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

Interface for world sector handling. See also the UnigineScript analog.

To use this class, include the UnigineWorldSector.h file.

WorldSector Class

Members


WorldSector (const Math::vec3 & dimensions)

Constructor. Creates a new world sector with given dimensions.

Arguments

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

Ptr<Node> getNode (int id)

Returns a node pointer.

Arguments

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

Return value

Node pointer.

Ptr<Node> getNode ()

Returns a node pointer.

Return value

Node pointer.

void setSize (const Math::vec3 & size)

Updates the current dimensions of the world sector. The minimum value is vec3(0,0,0).

Arguments

  • const Math::vec3 & size - Dimensions of the world sector.

Math::vec3 getSize ()

Returns the current dimensions of the world sector. The minimum value is vec3(0,0,0).

Return value

Current dimensions.

int getNumWorldPortals ()

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

Return value

Number of portals.

Ptr<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: ()