MCPcopy Index your code
hub / github.com/g3n/engine / WorldScale

Method WorldScale

core/node.go:793–799  ·  view source on GitHub ↗

WorldScale updates the world matrix and sets the specified vector to the current world scale of this node.

(result *math32.Vector3)

Source from the content-addressed store, hash-verified

791// WorldScale updates the world matrix and sets
792// the specified vector to the current world scale of this node.
793func (n *Node) WorldScale(result *math32.Vector3) {
794
795 var position math32.Vector3
796 var quaternion math32.Quaternion
797 n.UpdateMatrixWorld()
798 n.matrixWorld.Decompose(&position, &quaternion, result)
799}
800
801// WorldDirection updates the world matrix and sets
802// the specified vector to the current world direction of this node.

Callers

nothing calls this directly

Calls 2

UpdateMatrixWorldMethod · 0.95
DecomposeMethod · 0.80

Tested by

no test coverage detected