Contents

vortexField()

Creates and returns a field behavior object that applies a rotational force relative to the field’s position.

Declaration

class func vortexField() -> Self

Return Value

A field behavior object that applies a rotational force around the field’s origin.

Discussion

This forces created by this field rotate in a circle around the center point of the field. Items entering the field are pushed perpendicular to the imaginary line between the item and the center of the field. Combine this field with a radial gravity field to create a field that pulls items into a spinning vortex.

When setting the strength of the vortex field, positive values create a counter-clockwise rotation and negative values create a clockwise rotation. The amount of force is proportional to the item’s mass and the item’s distance from the field’s origin.

See Also

Getting the field behaviors