Skip to content

A constraint-based follower.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

VRLabs/Follower

Repository files navigation

Follower

Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

Make something slowly follow you and look at you

Follower


How it works

  • 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.

Install guide

Follower-6.mp4
  • Merge the Animator Controller Follower FX to your own FX Controller, using the Avatars 3.0 Manager tool.
  • Drag & Drop the Follower prefab 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 Target outside of Follower and place it anywhere in your avatars hierarchy as needed.

How to use

  • Place the objects you want to follow you inside Container.
    • Alternatively you can constrain the objects to Container.
  • Editing the Follow animation clip will let you change the speed of the follower.

Performance stats

Constraints:        5
Contact Receivers:  1
Contact Senders:    1

Hierarchy layout

Follower
|-Container
|  |-Cube
|-Look Constraint
|-Follower Target
|  |-Look Target

Contributors

License

Follower is available as-is under MIT. For more information see LICENSE.