Contents

localTranslate(by:)

Changes the node’s position relative to its current position.

Declaration

func localTranslate(by translation: SCNVector3)

Parameters

  • translation:

    The distance, in node-local space, by which to move the node.

Discussion

The effects of this method are animatable; that is, calling this method during an implicit-animation transaction animates the move. (See Animating SceneKit Content.)

See Also

Related Documentation

Performing Node-Relative Operations (SceneKit Types)