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: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter