Z.GravityBillboard
Inherits from Z.Group
Description
A Z.GravityBillboard node is a group that will be automatically rotated so that its Z axis will point upwards, away from the direction of gravity in the real world. The node calculates the "minimum" rotation required - that is the axis of rotation will be calculated so that the amount of rotation to achieve this alignment is the smallest possible.
For example if you have a Z.GravityBillboard node underneath a target and the target is kept horizontal then the Z.GravityBillboard node will not result in any noticeable change in the rendering of any children of the node. However as the target is rotated away from horizontal then the effect of the node on the rendering of its children should be clearly visible.
Provided by Z.GravityBillboard
Constructor
Inherited from Z.Group
Constructor
Functions
child(...) |
Gets the child node at the specified index. |
children( ) |
Gets the children of the group. |
clear( ) |
Removes all children from the group. |
insert(...) |
Inserts a node into the group at the specified index. |
push(...) |
Inserts a node as the last child of the group. |
remove(...) |
Removes a node from the group. |
Inherited from Z.Node
Functions
Inherited from Z.Base
Functions
emit(...) |
Calls the handler functions attached to an event. |
hasTag(...) |
Returns true if this object has the specified tag. |
off(...) |
Removes a handler function from an event. |
on(...) |
Attaches a handler function to an event. |
one(...) |
Attaches a single-use handler function to an event. |
pushTag(...) |
Adds a tag to this object. |
removeTag(...) |
Removes a tag from this object. |
tags( ) |
Gets an array of the tags that this object belongs to. |
tags(...) |
Sets the array of the tags that this object belongs to. |