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

Method SetScale

core/node.go:690–694  ·  view source on GitHub ↗

SetScale sets the scale.

(x, y, z float32)

Source from the content-addressed store, hash-verified

688
689// SetScale sets the scale.
690func (n *Node) SetScale(x, y, z float32) {
691
692 n.scale.Set(x, y, z)
693 n.matNeedsUpdate = true
694}
695
696// SetScaleVec sets the scale based on the specified vector pointer.
697func (n *Node) SetScaleVec(scale *math32.Vector3) {

Callers 2

newNodeMethod · 0.80
LoadNodeMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected