FollowAnimation
Description
This component creates an animation on an entity.
Properties
Property | Type | Default | Description |
---|---|---|---|
target | eid | undefined | The target object to animate. If not specified, the animation is run on the object that the component is attached to. |
minDistance | number | 0 | Minimum distance to maintain when following (in meters). |
maxDistance | number | 0 | Maximum distance to maintain when following (in meters). |
elasticity | number | 1 | Proportion of distance to move (per second) when target is outside of min/max distance (0 never moves, 1 is instantaneous) |