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

Method TranslateZ

core/node.go:544–547  ·  view source on GitHub ↗

TranslateZ translates the specified distance on the local Z axis.

(dist float32)

Source from the content-addressed store, hash-verified

542
543// TranslateZ translates the specified distance on the local Z axis.
544func (n *Node) TranslateZ(dist float32) {
545
546 n.TranslateOnAxis(&math32.Vector3{0, 0, 1}, dist)
547}
548
549// SetRotation sets the global rotation in Euler angles (radians).
550func (n *Node) SetRotation(x, y, z float32) {

Callers

nothing calls this directly

Calls 1

TranslateOnAxisMethod · 0.95

Tested by

no test coverage detected