1 Verlet Spring Simple Transforms
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!
This scene demonstrates the use of Verlet Spring on simple transform hierarchies. You will find a tower structure with a chain of transforms being rotated like a whip. This tower interacts with fixed objects demonstrating collision. In addition you will find a field of Verlet Springs also simulating collision with a ball that will follow the mouse on the plane.
Using Verlet Spring as a general use Physics joint
Setting up Verlet Spring components with constant configuration (the tower)
Setting up Verlet Spring components with referenced configuraiton (the grass)
Verlet Spring collision simulation
The tower object's pivot child implements the Verlet Spring component and a Constant Angular Velocity component. The Verlet Spring has a single configured hierarchy configured with a constant configuration ... this means the configuration is defined as part of the game object its self.
The tower Verlet Spring rotates around whipping across the meshes in its path demonstrating a rope or chain simulation as well as complex collision detection.
This is a collection of just under 300 Verlet Spring objects all set to sample collision. This demonstrates fixed Verlet Springs responding to moving objects. The Grass Blades are all using a Verlet Hierarchy Settings object meaning you can change a value in one spot to effect all 280+ objects.
This is a simple sphere with a basic sample script causing it to move to the mouse position on the plane rendered in the scene, you can use this ball to introduce collision to the grass blades or the whip if you can manage to catch it.