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.
See Also#
A UnigineScript API sample <UnigineSDK>/data/samples/worlds/sector_00
WorldSector Class
Properties
int NumWorldPortals#
The number of world portals adjacent to the world sector.
int NumNodes#
The number of nodes contained in the world sector.
vec3 Size#
The current dimensions of the world sector. the minimum value is vec3(0,0,0).
set
Updates the current dimensions of the world sector. The minimum value is vec3(0,0,0).
set value -
Dimensions of the world sector. If negative values are provided, 0 will be used instead of them.
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.
static 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.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.static int type ( ) #
Returns the type of the node.Return value
World type identifier.Last update:
2019-08-16
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)