UpdateMatrix updates (if necessary) the local transform matrix of this node based on its position, quaternion, and scale.
()
| 817 | // UpdateMatrix updates (if necessary) the local transform matrix |
| 818 | // of this node based on its position, quaternion, and scale. |
| 819 | func (n *Node) UpdateMatrix() bool { |
| 820 | |
| 821 | if !n.matNeedsUpdate && !n.rotNeedsUpdate { |
| 822 | return false |
| 823 | } |
| 824 | n.matrix.Compose(&n.position, &n.quaternion, &n.scale) |
| 825 | n.matNeedsUpdate = false |
| 826 | return true |
| 827 | } |
| 828 | |
| 829 | // UpdateMatrixWorld updates this node world transform matrix and of all its children |
| 830 | func (n *Node) UpdateMatrixWorld() { |
no test coverage detected