Constraints with adjustable damping effects
- 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.
Dampingconstraint-4.mp4
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 ofPosition 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 ofRotation 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
- Place the objects you want to dampen inside
Container
.- Alternatively you can constrain the objects to
Container
.
- Alternatively you can constrain the objects to
- Changing the weight of the second source in the constraint will change the strength of the damping effect.
Constraints: 1
Constraint Depth: 1
Position Damping Constraint:
Position Damping Constraint
|-Container
| |-Cube
|-Position Target
Rotation Damping Constraint:
Rotation Damping Constraint
|-Container
| |-Cube
|-Rotation Target
Damping Constraints is available as-is under MIT. For more information see LICENSE.