LayoutSystem
MRSystem
LayoutSystem ⇐ System that allows for setup and handling of changing layout.
Kind: global class
Extends: MRSystem
- LayoutSystem ⇐
MRSystem
layoutSystem.LayoutSystem
Kind: instance class of LayoutSystem
new exports.LayoutSystem()
Constructor for the layout system. Uses the default System setup.
layoutSystem.onNewEntity(entity)
Called when a new entity is added to this system
Kind: instance method of LayoutSystem
Param | Type | Description |
---|---|---|
entity | MREntity |
the entity being added. |
layoutSystem.update(deltaTime, frame)
The generic system update call. Handles updating all 3D items to match whatever layout position is expected.
Kind: instance method of LayoutSystem
Param | Type | Description |
---|---|---|
deltaTime | number |
given timestep to be used for any feature changes |
frame | object |
given frame information to be used for any feature changes |
layoutSystem.setLayoutPosition(entity)
Helper function for the update call. Sets the entity’s appropriate 3D layout position based on window and entity expectations.
Kind: instance method of LayoutSystem
Param | Type | Description |
---|---|---|
entity | MREntity |
the entity being updated. |