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

Method SetMatrix

core/node.go:751–756  ·  view source on GitHub ↗

SetMatrix sets the local transformation matrix.

(m *math32.Matrix4)

Source from the content-addressed store, hash-verified

749
750// SetMatrix sets the local transformation matrix.
751func (n *Node) SetMatrix(m *math32.Matrix4) {
752
753 n.matrix = *m
754 n.matrix.Decompose(&n.position, &n.quaternion, &n.scale)
755 n.rotNeedsUpdate = true
756}
757
758// Matrix returns a copy of the local transformation matrix.
759func (n *Node) Matrix() math32.Matrix4 {

Callers 2

ResetMethod · 0.80
LoadNodeMethod · 0.80

Calls 1

DecomposeMethod · 0.80

Tested by

no test coverage detected