Make something slowly follow you and look at you
- Using a Damping Constraint inside of a World Constraint we can make an object slowly follow the player.
- By using Contact Senders and Contact Receivers we can dynamically change the speed of the follower over time.
Follower-6.mp4
- Merge the Animator Controller
Follower FXto your own FX Controller, using the Avatars 3.0 Manager tool. - Drag & Drop the
Followerprefab into the base of your Hierarchy. - Right click and unpack the prefab, then drag & drop it onto your avatar.
- Expand the prefab hierarchy and find
Follower Target. - Move
Follower Targetoutside ofFollowerand place it anywhere in your avatars hierarchy as needed.
Note
When building for Quest, you will have to remove unsupported components and shaders
- Place the objects you want to follow you inside
Container.- Alternatively you can constrain the objects to
Container.
- Alternatively you can constrain the objects to
- Editing the
Followanimation clip will let you change the speed of the follower.
Constraints: 3
Constraint Depth: 3
Contact Receivers: 1
Contact Senders: 1Follower
|-Container
| |-Cube
|-Look Constraint
|-Follower Target
| |-Look TargetFollower is available as-is under MIT. For more information see LICENSE.