Passer au contenu principal

FollowAnimation

ecs.FollowAnimation

Description

Follow a target object at the given distance.

Functions

See component schema.

Schema

PropertyTypeDescription
targeteidThe target object to track when animating. If not specified the animation is disabled.
minDistancenumberMinimum distance to maintain when following (in meters).
maxDistancenumberMaximum distance to maintain when following (in meters).
elasticitynumberProportion of distance to move (per second) when target is outside of min/max distance (0 never moves, 1 is instantaneous)