SetRotationX sets the global X rotation to the specified angle in radians.
(x float32)
| 571 | |
| 572 | // SetRotationX sets the global X rotation to the specified angle in radians. |
| 573 | func (n *Node) SetRotationX(x float32) { |
| 574 | |
| 575 | if n.rotNeedsUpdate { |
| 576 | n.rotation.SetFromQuaternion(&n.quaternion) |
| 577 | n.rotNeedsUpdate = false |
| 578 | } |
| 579 | n.rotation.X = x |
| 580 | n.quaternion.SetFromEuler(&n.rotation) |
| 581 | n.matNeedsUpdate = true |
| 582 | } |
| 583 | |
| 584 | // SetRotationY sets the global Y rotation to the specified angle in radians. |
| 585 | func (n *Node) SetRotationY(y float32) { |
no test coverage detected