mirror of
https://github.com/VRLabs/Offset-Constraint.git
synced 2026-06-05 17:06:27 +00:00
No description
|
|
||
|---|---|---|
| .github/workflows | ||
| Instancer | ||
| Media | ||
| Resources | ||
| .gitignore | ||
| Instancer.meta | ||
| LICENSE | ||
| LICENSE.meta | ||
| Media.meta | ||
| Offset Constraint FX.controller | ||
| Offset Constraint FX.controller.meta | ||
| Offset Constraint.prefab | ||
| Offset Constraint.prefab.meta | ||
| package.json | ||
| package.json.meta | ||
| README.md | ||
| README.md.meta | ||
| Resources.meta | ||
Offset Constraint
A constraint system to preserve offsets
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
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.