2D spring mass damper simulation

Post Reply
yoavmil
Posts: 5
Joined: Mon May 16, 2016 8:24 pm

2D spring mass damper simulation

Post by yoavmil »

Hi all
I have a 2D polygon that consists of 2D nodes, connected by springs. the polygon lies on a surface, which acts as a damper. those nodes, at t=0, are strung high by the springs, ex. they are are longer than the rest length, there for they want to come closer to each other.
I need to find the final state of the polygon.

I am new to Bullet,
How can Bullet help me to solve this?
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: 2D spring mass damper simulation

Post by drleviathan »

This problem sounds simple enough that maybe you want to solve it with custom code rather than use Bullet. It depends on what the "nodes" look like and how they are "damped" by the 2D surface.

If your nodes are just points and their interaction with the 2D surface is simplistic then I'd recommend just implementing the simulation with simple brute force and let it relax into a steady state.

If the nodes should be represented by 3D shapes (spheres, for example) such that they have an important angular inertial term and their interaction with the 2D surface should use some kind of contact friction model then maybe Bullet would be the way to go.

Maybe provide more info and/or draw a picture?
Post Reply