FollowAnimation
ecs.FollowAnimation
Description
Follow a target object at the given distance.
Functions
See component schema.
Schema
Property | Type | Description |
---|---|---|
target | eid | The target object to track when animating. If not specified the animation is disabled. |
minDistance | number | Minimum distance to maintain when following (in meters). |
maxDistance | number | Maximum distance to maintain when following (in meters). |
elasticity | number | Proportion of distance to move (per second) when target is outside of min/max distance (0 never moves, 1 is instantaneous) |