Contents

velocityField(withVector:)

Creates a field node that gives physics bodies a constant velocity.

Declaration

class func velocityField(withVector direction: vector_float3) -> SKFieldNode

Parameters

  • direction:

    The velocity that any affected physics bodies will have. The z component on the vector is ignored.

Return Value

A new velocity field node.

See Also

Creating Field Nodes