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

Method SetQuaternion

core/node.go:645–649  ·  view source on GitHub ↗

SetQuaternion sets the quaternion based on the specified quaternion unit multiples.

(x, y, z, w float32)

Source from the content-addressed store, hash-verified

643
644// SetQuaternion sets the quaternion based on the specified quaternion unit multiples.
645func (n *Node) SetQuaternion(x, y, z, w float32) {
646
647 n.quaternion.Set(x, y, z, w)
648 n.rotNeedsUpdate = true
649}
650
651// SetQuaternionVec sets the quaternion based on the specified quaternion unit multiples vector.
652func (n *Node) SetQuaternionVec(q *math32.Vector4) {

Callers 1

LoadNodeMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected