Skip to content

A hierarchy of animated constraints that display how to move an object in world space while preserving previously generated offsets.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

VRLabs/Offset-Constraint

Repository files navigation

Offset Constraint

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A constraint system to preserve offsets

OffsetConstraint


How it works

  • Constraints reference each other as sources and swap their enabled state to preserve offset transforms.

Install guide

Offset.Constraint-11.mp4
  • 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.

About

A hierarchy of animated constraints that display how to move an object in world space while preserving previously generated offsets.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages