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

Method TranslateY

core/node.go:538–541  ·  view source on GitHub ↗

TranslateY translates the specified distance on the local Y axis.

(dist float32)

Source from the content-addressed store, hash-verified

536
537// TranslateY translates the specified distance on the local Y axis.
538func (n *Node) TranslateY(dist float32) {
539
540 n.TranslateOnAxis(&math32.Vector3{0, 1, 0}, dist)
541}
542
543// TranslateZ translates the specified distance on the local Z axis.
544func (n *Node) TranslateZ(dist float32) {

Callers

nothing calls this directly

Calls 1

TranslateOnAxisMethod · 0.95

Tested by

no test coverage detected