set_rotation method

set_rotation

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

Returns

def set_rotation(self, rw, rx, ry, rz):
    ...
ParameterTypeDescription
rwfloat
rxfloat
ryfloat
rzfloat

Example

from aspose.threed import Node

node = Node()
node.transform.set_rotation(1, 0, 0, 0)

See Also