WorldPosition updates the world matrix and sets the specified vector to the current world position of this node.
(result *math32.Vector3)
| 764 | // WorldPosition updates the world matrix and sets |
| 765 | // the specified vector to the current world position of this node. |
| 766 | func (n *Node) WorldPosition(result *math32.Vector3) { |
| 767 | |
| 768 | n.UpdateMatrixWorld() |
| 769 | result.SetFromMatrixPosition(&n.matrixWorld) |
| 770 | } |
| 771 | |
| 772 | // WorldQuaternion updates the world matrix and sets |
| 773 | // the specified quaternion to the current world quaternion of this node. |
no test coverage detected