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

Method WorldRotation

core/node.go:784–789  ·  view source on GitHub ↗

WorldRotation updates the world matrix and sets the specified vector to the current world rotation of this node in Euler angles.

(result *math32.Vector3)

Source from the content-addressed store, hash-verified

782// WorldRotation updates the world matrix and sets
783// the specified vector to the current world rotation of this node in Euler angles.
784func (n *Node) WorldRotation(result *math32.Vector3) {
785
786 var quaternion math32.Quaternion
787 n.WorldQuaternion(&quaternion)
788 result.SetFromQuaternion(&quaternion)
789}
790
791// WorldScale updates the world matrix and sets
792// the specified vector to the current world scale of this node.

Callers

nothing calls this directly

Calls 2

WorldQuaternionMethod · 0.95
SetFromQuaternionMethod · 0.80

Tested by

no test coverage detected