Spring Constraint
Spring Constraint
A constraint system with spring behavior
⬇️ Download Latest Version
📦 Add to VRChat Creator Companion
</div>How it works
- The constraint is weighted between 3 sources to achieve a spring-like effect.
Install Guide
https://github.com/VRLabs/Spring-Constraint/assets/76777936/6a5056c7-9f47-4caf-bef0-8eae04f84613
- Drag & drop the
Spring 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
Spring Target - Move
Spring Targetoutside ofSpring 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 your objects inside
Spring Constraints->Container.- Alternatively you can constrain the objects to
Container.
- Alternatively you can constrain the objects to
- To change the characteristics of the spring, change the position constraint values on the
Motionobject:- Sources > Spring Target (default 1.1) controls the strength of the spring. Higher values make it harder to stretch the spring. Min: 1, Max: 2
- Sources > Motion (default 4) dampens acceleration, the higher the value the slower
Containeraccelerates.
Performance stats
Constraints: 2
Constraint Depth: 2
Hierarchy layout
Spring Constraint
|-Container
| |-Cube
|-Motion
|-Spring Target
Contributors
License
Spring 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.spring-constraintUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined