Contents

warp(to:duration:)

Creates an action to distort a node based using an Skwarpgeometry object.

Declaration

class func warp(to warp: SKWarpGeometry, duration: TimeInterval) -> SKAction?

Parameters

  • warp:

    The warp geometry to distort the node to.

  • duration:

    The duration of the animation.

Mentioned in

Return Value

A new action object.

Discussion

The numberOfColumns and numberOfRows in the node’s current geometry should match those of the specified geometry.

See Also

Animate the Warping of a Node