rotation( )

rotation() : number[];

Gets the current rotation of the node, in the form [x, y, z].

Components form angles, in degrees, around the x, y, and z axis of the parent node, in that order.

Default value: [0, 0, 0]

Returns

The rotation of the node.

Example

var s = myobject.rotation();
// s is [0, 0, 0]
zapcode branded_zapcode i