Transform.SetRotation

Transform.SetRotation method

Sets the rotation(as quaternion components) of current transform.

public Transform SetRotation(double rw, double rx, double ry, double rz)
ParameterTypeDescription
rwDouble
rxDouble
ryDouble
rzDouble

Examples

Node node = new Node();
node.Transform.SetRotation(1, 0, 0, 0);

See Also