logoRemuria

Offset Constraint

1.0.3 Public
<div align="center">

Offset Constraint

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A constraint system to preserve offsets

OffsetConstraint

⬇️ 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 FX to your own FX Controller, using the Avatars 3.0 Manager tool.
  • Drag & drop the Offset Constraint 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 Offset Target
  • Move Offset Target outside of Offset Constraint and 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.

There are two bools in your FX Controller:

  • OffsetConstraint/Control:
    • True: Places the Container in world space and allows the user to set the specified offset.
    • False: Constraints the Container to the Offset Target with the specified offset.
  • OffsetConstraint/Reset moves the Container to the Offset 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-constraint

Unity Version

2022.3

Unity Release

undefined

VRChat Version

undefined

Author

License

MIT

Documentation URL

undefined

Changelog URL

undefined