SetMatrix sets the local transformation matrix.
(m *math32.Matrix4)
| 749 | |
| 750 | // SetMatrix sets the local transformation matrix. |
| 751 | func (n *Node) SetMatrix(m *math32.Matrix4) { |
| 752 | |
| 753 | n.matrix = *m |
| 754 | n.matrix.Decompose(&n.position, &n.quaternion, &n.scale) |
| 755 | n.rotNeedsUpdate = true |
| 756 | } |
| 757 | |
| 758 | // Matrix returns a copy of the local transformation matrix. |
| 759 | func (n *Node) Matrix() math32.Matrix4 { |