Mesh of Springs
A downloadable project
Code: https://github.com/neigerk/CS491-Projects/blob/main/MeshOfSprings.cpp
I programmed a mesh of springs. It is made up of a series of nodes, connected by springs.
Variables:
- Mass: The mass of the nodes. The higher the mass, the more the springs will be stretched
- Spring Constant: Changes the strength of the springs. The higher the spring constant, the tighter the nodes are pulled.
- Damping: This is the nodes' resistance to movement. The higher the damping the longer it will take for the nodes to move into place when the mesh is moved.
- Gravity: Changes the pull of gravity. Earth gravity is -9.8 m/s. Increasing the gravity will weaken it, and eventually make it positive, causing the mesh to fall upwards.
Status | Released |
Category | Other |
Author | Kevin Neiger |
Leave a comment
Log in with itch.io to leave a comment.