Rotation returns the current global rotation in Euler angles (radians).
()
| 607 | |
| 608 | // Rotation returns the current global rotation in Euler angles (radians). |
| 609 | func (n *Node) Rotation() math32.Vector3 { |
| 610 | |
| 611 | if n.rotNeedsUpdate { |
| 612 | n.rotation.SetFromQuaternion(&n.quaternion) |
| 613 | n.rotNeedsUpdate = false |
| 614 | } |
| 615 | return n.rotation |
| 616 | } |
| 617 | |
| 618 | // RotateOnAxis rotates around the specified local axis the specified angle in radians. |
| 619 | func (n *Node) RotateOnAxis(axis *math32.Vector3, angle float32) { |
no test coverage detected