Offset Constraint
Offset Constraint
A constraint system to preserve offsets
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
</div>How it works
- Constraints reference each other as sources and swap their enabled state to preserve offset transforms.
Install guide
https://github.com/VRLabs/Offset-Constraint/assets/76777936/f20790ad-0a5e-49ee-aaac-3b2e380f5f93
- Merge the Animator Controller
Offset Constraint FXto your own FX Controller, using the Avatars 3.0 Manager tool. - Drag & drop the
Offset Constraintprefab 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
Offset Target - Move
Offset Targetoutside ofOffset Constraintand place it anywhere in your avatars 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 to use inside
Offset Constraint->Container.- Alternatively you can constrain the objects to
Container.
- Alternatively you can constrain the objects to
There are two bools in your FX Controller:
OffsetConstraint/Control:- True: Places the
Containerin world space and allows the user to set the specified offset. - False: Constraints the
Containerto theOffset Targetwith the specified offset.
- True: Places the
OffsetConstraint/Resetmoves theContainerto theOffset Target.
Performance stats
Constraints: 2
FX Animator Layers: 1
Hierarchy layout
Offset Constraint
|-Container
| |-Cube
|-Root
| |-End
|-Offset Target
Contributors
License
Offset Constraint 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.offset-constraintUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined