Documentation/Entity Types/Base/Occluder.type

From NeoAxis 3D Engine Wiki

Jump to: navigation, search
Go to higher level

Description

Occluders are the part of the Portal System. Occluders are used as switches for Portals. Specific occluder examples are doors and all sorts of shutters.

Occluders work the following way. A portal is considered switched off and is not processed as long as it entirely fits an occluder. If the portal is entirely or partially is outside of the occluder, it is considered switched on.

Usually occluders are placed in the Map Editor. Also, you can attach them to objects in the Type Editor to make occluders move behind objects automatically. In the SDK Door.type there is an example of such a connection, which is located in the "Data\Types\Dynamic\Door" directory.

Occluder 01.jpg

Properties

Название Описание
class Entity
Components List of attached components.
LogicClass Reference to the Logic Editor class. Read more about how to work with the Logic Editor class.
Name Object name.
Tags User defined information. Defined as keyvalue pairs. It is used for user's needs.
Type Object type. It can not be changed.
class MapObject
Position Object position on the map.
Rotation Object rotation. The angle of rotation is set in degrees.
Scale Object scaling.
class Occluder
Enabled Enable/disable the occluder.
Map Editor
AutoVerticalAlignment Automatical alignment by height mode. Allows to set the value among 4 variants: None (without alignment ), ByBounds (by dimensions), ByBoundsWithRotation (by dimension with possible rotation), ByCenter (by center).
Layer The layer of the map these objects belong to.