Skip to content

rotation( )

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

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]

The rotation of the node.

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