Skip to content

ENUM

TargetPursuitType

public enum TargetPursuitType

Contains the supported animations types for smooth pursuit interaction.

Cases

elliptical(center:diameter:_:)

case elliptical(center: CGPoint, diameter: CGFloat, Direction)

A circular (for now) movement, orbiting around a center with a given diameter.

linear(p1:p2:_:)

case linear(p1: CGPoint, p2: CGPoint, Direction)

A Linearly moving target between two points

rectangular(bounds:_:)

case rectangular(bounds: CGRect, Direction)

rectSpiral(bounds:_:)

case rectSpiral(bounds: CGRect, Direction)

randomLocations(bounds:_:)

case randomLocations(bounds: CGRect, Direction)

Properties

rawValue

public var rawValue: String

The string value of the pursuit type.