UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials

Unigine::WorldSector Class

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

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

Unigine::WorldSector Class

Members


static Ptr< WorldSector > create (const NodePtr & node)

WorldSector constructor.

Arguments

  • const NodePtr & node - Node smart pointer.

static Ptr< WorldSector > create (const vec3 & size)

WorldSector constructor.

Arguments

  • const vec3 & size - World sector size.

virtual void setSize (const vec3 & size) const =0

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

Arguments

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

virtual vec3 getSize () const =0

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

Return value

Current dimensions.

virtual int getNumNodes () const =0

Returns the number of nodes contained in the world sector.

Return value

Number of nodes.

virtual NodePtr getNode (int num) const =0

Returns a specified node contained in the world sector.

Arguments

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

Return value

Specified node.

virtual int getNumWorldPortals () const =0

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

Return value

Number of portals.

virtual Ptr< WorldPortal > getWorldPortal (int num) const =0

Returns a specified world portal adjacent to the world sector.

Arguments

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

Return value

Specified portal.
Last update: 2017-07-03