mirror of
https://github.com/VRLabs/Contact-Tracker.git
synced 2026-06-05 16:56:26 +00:00
No description
|
|
||
|---|---|---|
| .github | ||
| Instancer | ||
| Media | ||
| Resources | ||
| .gitignore | ||
| Contact Tracker FX.controller | ||
| Contact Tracker FX.controller.meta | ||
| Contact Tracker.prefab | ||
| Contact Tracker.prefab.meta | ||
| Instancer.meta | ||
| LICENSE | ||
| LICENSE.meta | ||
| Media.meta | ||
| package.json | ||
| package.json.meta | ||
| README.md | ||
| README.md.meta | ||
| Resources.meta | ||
Contact Tracker
System for attaching objects to contacts on other players
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
How it works
- Six overlapping Proximity Contacts feed their outputs into a parent constraint to center a GameObject on the target.
- The GameObject contains the Proximity Contacts, making them center themselves on the target constantly.
- The
Allow Otherssetting on the Contacts is turned off after the Contact Tracker has attached.- This prevents the Contact Tracker from tracking multiple Contacts.
Install guide
https://github.com/VRLabs/Contact-Tracker/assets/76777936/39dd0fb1-9333-42d3-91b4-8c812a24792a
- Merge the Animator Controller
Contact Tracker FXto your own FX Controller, using the Avatars 3.0 Manager tool. - Drag & drop the
Contact Trackerprefab 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
Tracker Target. - Move
Tracker Targetoutside ofContact Trackerand place it anywhere in your avatar's hierarchy as needed.
Note
When building for Quest, you will have to remove unsupported components and shaders
How to use
- Place the objects you want to attach to other players inside
Contact Tracker->Container.- Alternatively you can constrain the objects to
Contact Tracker->Tracking Points.
- Alternatively you can constrain the objects to
- Enable the
ContactTracker/Controlparameter to activate the system. - You can edit the
Collision Tagsof the six Proximity Contacts to change which Contact Senders the Contact Tracker should track. - The
ContactTracker/Sizeparameter in the FX Controller can be changed to set the size of the Contact Tracker when it is not tracking.
Additional notes
- The Blend Tree used in the
Contact Tracker Blend TreeFX Layer MUST use Write Defaults ON! - This is the only case in which mixing Write Defaults is okay, you do not need to switch your workflow.
Performance stats
Constraints: 6
Constraint Depth: 5
Contact Receivers: 6
FX Animator Layers: 2
Mesh Renderers: 1
Hierarchy layout
Contact Tracker
|-Container
| |-Cube
|-Tracking Points
| |-Culling
| |-X+
| |-X-
| |-Y+
| |-Y-
| |-Z+
| |-Z-
|-Tracker Target
Contributors
License
Contact Tracker is available as-is under MIT. For more information see LICENSE.