file: FollowComponent.aus

class: FollowComponent

[17:7] extends: Component

Wraps FXGL's FollowComponent (com.almasb.fxgl.dsl.components.FollowComponent), which makes the owning entity follow a target Entity at a given speed while staying within a minDistance..maxDistance range. Inside minDistance it backs away; beyond maxDistance it advances; in between it idles.

Methods