MCPcopy
hub / github.com/g3n/engine / WorldPosition

Method WorldPosition

core/node.go:766–770  ·  view source on GitHub ↗

WorldPosition updates the world matrix and sets the specified vector to the current world position of this node.

(result *math32.Vector3)

Source from the content-addressed store, hash-verified

764// WorldPosition updates the world matrix and sets
765// the specified vector to the current world position of this node.
766func (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.

Callers 6

LookAtMethod · 0.95
RenderMethod · 0.80
RenderMethod · 0.80
RenderSetupMethod · 0.80
RenderSetupMethod · 0.80
RenderSetupMethod · 0.80

Calls 2

UpdateMatrixWorldMethod · 0.95
SetFromMatrixPositionMethod · 0.80

Tested by

no test coverage detected