velocityField(withVector:)
Creates a field node that gives physics bodies a constant velocity.
Declaration
class func velocityField(withVector direction: vector_float3) -> SKFieldNodeParameters
- direction:
The velocity that any affected physics bodies will have. The
zcomponent on the vector is ignored.
Return Value
A new velocity field node.