Skip to content

A constraint with spring behavior.

License

MIT, Unknown licenses found

Licenses found

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

VRLabs/Spring-Constraint

Repository files navigation

Spring Constraint

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A constraint system with spring behavior

SpringConstraint


How it works

  • The constraint is weighted between 3 sources to achieve a spring-like effect.

Install Guide

Spring.Constraint-17.mp4
  • Drag & drop the Spring 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 Spring Target
  • Move Spring Target outside of Spring 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 your objects inside Spring Constraints -> Container.
    • Alternatively you can constrain the objects to Container.
  • To change the characteristics of the spring, change the position constraint values on the Motion object:
    • 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 Container accelerates.

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.

About

A constraint with spring behavior.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages