Unigine.WorldSwitcher Class
Inherits: | Node |
Interface for world switcher handling. See also the UnigineScript analog.
See Also#
A set of UnigineScript API samples located in the <UnigineSDK>/data/samples/worlds/ folder:
- switcher_00
- switcher_01
WorldSwitcher Class
Properties
float MaxDistance#
The current maximum distance of visibility. if a camera is further from a node than this maximum distance, a node is not visible. the default is inf.
set
Sets the maximum distance of visibility. If a camera is further from a node than this maximum distance, a node is not visible. The default is inf.
set value -
Maximum distance of visibility in units.
float MinDistance#
The current minimum distance of visibility. if a camera is closer to a node than this minimum distance, a node is not visible. the default is -inf.
set
Sets the minimum distance of visibility. If a camera is closer to a node than this minimum distance, a node is not visible. The default is -inf.
set value -
Minimum distance of visibility in units.
vec3 Offset#
The currnt offset of coordinates of the switcher box center.
set
Sets offset of coordinates of the switcher box center.
set value -
Switcher box center coordinates.
vec3 Size#
The current size of a switcher.
set
Sets the size of a switcher.
set value -
Box dimensions in units.
bool IsPoint#
A value indicating if the point mode is set for the switcher. if the point mode is set, the distance is measured to the bounding box center; otherwise, to the bounding box edges.
set
Sets a point mode for the switcher. If the point mode is set, the distance is measured to the bounding box center; otherwise, to the bounding box edges.
set value -
1 to measure the distance to the box center; 0 to measure it to the box edges.
Members
static WorldSwitcher ( vec3 size ) #
Creates a switcher for child nodes.Arguments
- vec3 size - Box dimensions in units.
static WorldSwitcher Cast ( Node node ) #
Casts a WorldSwitcher out of the Node instance.Arguments
- Node node - Node instance.
Return value
WorldSwitcher instance.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)