This class adds a pivot node that can serve as a pivot point for its children and allows for easy control over their transformation. It has two matrices: one sets the basis of rotation (the pivot point transformation matrix), and another one describes local transformation for child nodes relative to the pivot point.

Notice

It has virtually zero influence on performance and shares all common options that other nodes have.

Creating a Pivot Node

To create a pivot node, perform as follows:

Create an instance of the NodePivot class.

Add child nodes to the pivot node.

Release script ownership so that the node can be added to UnigineEditor.

Add the node with its children to UnigineEditor (wherein, node ownership will be passed to the editor automatically).