Verlet Spring
Last updated
Last updated
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!
The Verlet Spring component manages hierarchies of transforms integrating Newtonian movement formulas according to the settings applied to each hierarchy.
In simpler terms it lets you describe how a chain of transforms should act physically speaking.
Each Verlet Spring component can manage any number of hierarchies, each component updates all of the hierarchies defined in it so you can use this concept to group systems together making it easier to turn them on and off.
For example you would add a Verlet Spring component to a character and then create hierarchies for that characters required parts. Then when that character is disabled its Verlet calculations are also disabled.
The list of hierarches managed by the spring
You can manually add hierarchies by first constructing a hierarchy and adding it to the list
You can add additional forces to hierarchies to simulate effects like explosions, wind, etc. To add a force you can use
This will add the force evenly to all hierarchies and nodes with in each hierarchy and is useful for global effects like gravity, wind or buoyancy
This will apply a positional force and is more useful for effects like explosions.
These methods are just shortcuts to effect all Hierarchies within the spring, you can applies these to specific hierarchies if you like. See Verlet Hierarchy for more information