SetQuaternion sets the quaternion based on the specified quaternion unit multiples.
(x, y, z, w float32)
| 643 | |
| 644 | // SetQuaternion sets the quaternion based on the specified quaternion unit multiples. |
| 645 | func (n *Node) SetQuaternion(x, y, z, w float32) { |
| 646 | |
| 647 | n.quaternion.Set(x, y, z, w) |
| 648 | n.rotNeedsUpdate = true |
| 649 | } |
| 650 | |
| 651 | // SetQuaternionVec sets the quaternion based on the specified quaternion unit multiples vector. |
| 652 | func (n *Node) SetQuaternionVec(q *math32.Vector4) { |