SetRotation sets the global rotation in Euler angles (radians).
(x, y, z float32)
| 548 | |
| 549 | // SetRotation sets the global rotation in Euler angles (radians). |
| 550 | func (n *Node) SetRotation(x, y, z float32) { |
| 551 | |
| 552 | n.rotation.Set(x, y, z) |
| 553 | n.quaternion.SetFromEuler(&n.rotation) |
| 554 | n.matNeedsUpdate = true |
| 555 | } |
| 556 | |
| 557 | // SetRotationVec sets the global rotation in Euler angles (radians) based on the specified vector pointer. |
| 558 | func (n *Node) SetRotationVec(vrot *math32.Vector3) { |
no test coverage detected