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

Method Rotation

core/node.go:609–616  ·  view source on GitHub ↗

Rotation returns the current global rotation in Euler angles (radians).

()

Source from the content-addressed store, hash-verified

607
608// Rotation returns the current global rotation in Euler angles (radians).
609func (n *Node) Rotation() math32.Vector3 {
610
611 if n.rotNeedsUpdate {
612 n.rotation.SetFromQuaternion(&n.quaternion)
613 n.rotNeedsUpdate = false
614 }
615 return n.rotation
616}
617
618// RotateOnAxis rotates around the specified local axis the specified angle in radians.
619func (n *Node) RotateOnAxis(axis *math32.Vector3, angle float32) {

Callers 1

CloneMethod · 0.95

Calls 1

SetFromQuaternionMethod · 0.80

Tested by

no test coverage detected