Specify that this actor is supposed to chase another actor
OptionalchaseInX?: booleanOptional: Should the actor change its x velocity?
OptionalchaseInY?: booleanOptional: Should the actor change its y velocity?
OptionalmaxSpeed?: numberOptional: a ceiling for the scaled speed
OptionalminSpeed?: numberOptional: a floor for the scaled speed
Optionalmultiplier?: numberOptional scaling factor for changing how fast the actor chases (default is 2) (useful when chaseInX or chaseInY is false)
OptionalscaleSpeedWithDistance?: booleanOptional: should the chase speed grow with the distance to the target? (default false)
The speed with which it chases the other actor
OptionalspeedDistanceScale?: numberOptional: how much speed to add per meter of distance (default 0.1; only used when scaleSpeedWithDistance is true)
The actor to chase
OptionalteleportDistance?: numberOptional: if the target is farther away than this many meters, teleport to it instead of chasing
Is this actor currently chasing its target? If not, it stands still.
The actor to chase. It can be changed at any time.
The RigidBodyComponent to which this movement is attached
The RigidBodyComponent to which this movement is attached
A rule for moving by chasing some other actor