Selective Animation
Selective Animation
System for playing animations for only a single player in an instance
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
</div>How it works
- The system is built using two Raycasts.
- The two raycasts are slightly offset from each other, and one has a contact sender on it, while the other a contact receiver on it.
- When pointed at a player, both raycasts will collide with the player only on their screen, because the PlayerLocal collider only exists on their side. This means the Contact Sender and Receiver will only make contact for the player the system is pointing at.
Install guide
https://github.com/VRLabs/Selective-Animation/assets/76777936/3dc5d6d8-8855-4bef-9398-62fd3522a69e
- If you dont already have Final IK installed, download and install the Final IK Stub.
- Note: Testing in Unity is not possible when using the Final IK Stub!
- Drag & drop the
Selective Animationprefab 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
Selective Animation Target - Move
Selective Animation Targetoutside ofSelective Animationand place it anywhere in your avatars hierarchy as needed. - Adjust the rotation so the laser points in the desired direction.
- The laser can be disabled or deleted.
How to use
- Add the bool
SelectiveAnimation/IsSelectedto your FX controller. - When the system is pointing at a player, the bool will be
Trueonly for the player it is pointing at. - Use the bool as a transition condition to make animations visible to only the one player.
Additional notes
- VRChat uses Final IK v1.9. If you are using a different version you may experience differences in behavior when testing with Final IK.
Performance stats
Constraints: 3
Constraint Depth: 2
Contact Receivers: 1
Contact Senders: 1
Hierarchy layout
Selective Animation
|-Raycast Container
| |-PlayerLocal Raycast Sender
| | |-LimbIK
| | | |-Grounder
| | | | |-Offset
| | | | | |-End
| |-PlayerLocal Raycast Receiver
| | |-LimbIK
| | | |-Grounder
| | | | |-Offset
| | | | | |-End
| |-Sender
| |-Receiver
| |-Laser
|-Selective Animation Target
Contributors
- hfcRed
- jellejurre
- Wakam
License
Selective Animation is available as-is under MIT. For more information see LICENSE
<div align="center"><img src="https://github.com/VRLabs/Resources/raw/main/Icons/VRLabs.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Discord.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Patreon.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Twitter.png" width="50" height="50">
</div>Keywords
No keywords found.Install via VCC
Package ID
dev.vrlabs.selective-animationUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined