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

Method TranslateX

core/node.go:532–535  ·  view source on GitHub ↗

TranslateX translates the specified distance on the local X axis.

(dist float32)

Source from the content-addressed store, hash-verified

530
531// TranslateX translates the specified distance on the local X axis.
532func (n *Node) TranslateX(dist float32) {
533
534 n.TranslateOnAxis(&math32.Vector3{1, 0, 0}, dist)
535}
536
537// TranslateY translates the specified distance on the local Y axis.
538func (n *Node) TranslateY(dist float32) {

Callers

nothing calls this directly

Calls 1

TranslateOnAxisMethod · 0.95

Tested by

no test coverage detected