This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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 int type ()

WorldSector type.

Return value

WorldSector type identifier.

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 Ptr< Node > getNode () const =0

Returns a node pointer.

Return value

Node pointer.

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