This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related 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.

Unigine.WorldSector Class

Inherits:Node

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


static 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.

WorldSector cast(Node node)

Casts a WorldSector out of the Node instance.

Arguments

  • Node node - Node instance.

Return value

WorldSector instance.

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.

Node getNode()

Returns a node pointer.

Return value

Node pointer.

int getNumNodes()

Returns the number of nodes contained in the world sector.

Return value

Number of nodes.

int getNumWorldPortals()

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

Return value

Number of portals.

void setSize(vec3 size)

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

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. The minimum value is vec3(0,0,0).

Return value

Current dimensions.

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

Returns the type of the node.

Return value

World type identifier.
Last update: 2018-08-10
Build: ()