Mausinator08 / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Soft Body rest length #470

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Just made a quick patch for btSoftBody to allow the modification
of the rest length of the links during simulation (mostly used
for ropes I guess but works with any softbody)
There's a new member variable in btSoftBody called m_restLength, which is
basically a ratio of the original distance between the 2 nodes
and the final length is calculated :
 m_rl = initial_length * m_restLength;

I've been playing around with it for a bit and seems to work great, also
takes into account the deactivation of soft bodies.

Cheers
Francois

Original issue reported on code.google.com by majestik...@gmail.com on 6 Jan 2011 at 2:11

Attachments:

GoogleCodeExporter commented 8 years ago
See also http://code.google.com/p/bullet/issues/detail?id=503

A few similarities to this issue.

Original comment by dave.bru...@gmail.com on 9 Apr 2011 at 9:16

GoogleCodeExporter commented 8 years ago
Note: majestik's patch code has been integrated into a large scale patch in 
issue 503 (link above).

Original comment by dave.bru...@gmail.com on 10 Apr 2011 at 9:32

GoogleCodeExporter commented 8 years ago

Original comment by erwin.coumans on 10 Sep 2013 at 9:13