SetRotationY sets the global Y rotation to the specified angle in radians.
(y float32)
| 583 | |
| 584 | // SetRotationY sets the global Y rotation to the specified angle in radians. |
| 585 | func (n *Node) SetRotationY(y float32) { |
| 586 | |
| 587 | if n.rotNeedsUpdate { |
| 588 | n.rotation.SetFromQuaternion(&n.quaternion) |
| 589 | n.rotNeedsUpdate = false |
| 590 | } |
| 591 | n.rotation.Y = y |
| 592 | n.quaternion.SetFromEuler(&n.rotation) |
| 593 | n.matNeedsUpdate = true |
| 594 | } |
| 595 | |
| 596 | // SetRotationZ sets the global Z rotation to the specified angle in radians. |
| 597 | func (n *Node) SetRotationZ(z float32) { |
nothing calls this directly
no test coverage detected