set_rotation method
set_rotation(self, rw, rx, ry, rz)
Sets the rotation(as quaternion components) of current transform.
Returns
def set_rotation(self, rw, rx, ry, rz):
...
| Parameter | Type | Description |
|---|---|---|
| rw | float | |
| rx | float | |
| ry | float | |
| rz | float |
Example
from aspose.threed import Node
node = Node()
node.transform.set_rotation(1, 0, 0, 0)
See Also
- module
aspose.threed - class
Transform