Type Method

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.

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

class func animate(withWarps: [SKWarpGeometry], times: [NSNumber]) -> SKAction?

Creates an action to distort a node through a sequence of SKWarpGeometry objects.