logoRemuria

Damping Constraints

1.0.3 Public
<div align="center">

Damping Constraints

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

Constraints with adjustable damping effects

DampingConstraint

⬇️ Download Latest Version

📦 Add to VRChat Creator Companion

</div>

How it works

  • The constraint targets itself at full weight and another source at a weight lower than one.
  • This causes a feedback loop where every frame the constraint moves a relative distance towards the target, creating a damping effect.

Install guide

https://github.com/VRLabs/Damping-Constraints/assets/76777936/98ad4d8a-1e70-4c49-bccc-69b6fc566bf4

Position Damping Constraint

  • Drag & Drop the Position Damping 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 Position Target.
  • Move Position Target outside of Position Damping Constraint and place it anywhere in your avatars hierarchy as needed.

Rotation Damping Constraint

  • Drag & Drop the Rotation Damping 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 Rotation Target.
  • Move Rotation Target outside of Rotation Damping 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 dampen inside Container.
    • Alternatively you can constrain the objects to Container.
  • Changing the weight of the second source in the constraint will change the strength of the damping effect.

Performance stats

Constraints:        1
Constraint Depth:   1

Hierarchy layout

Position Damping Constraint:

Position Damping Constraint
|-Container
|  |-Cube
|-Position Target

Rotation Damping Constraint:

Rotation Damping Constraint
|-Container
|  |-Cube
|-Rotation Target

Contributors

License

Damping Constraints 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.damping-constraints

Unity Version

2022.3

Unity Release

undefined

VRChat Version

undefined

Author

License

MIT

Documentation URL

undefined

Changelog URL

undefined