Search found 3 matches

by m_iDev_792
Sat Apr 13, 2019 10:03 am
Forum: General Bullet Physics Support and Feedback
Topic: Petal simulation
Replies: 5
Views: 5250

Re: Petal simulation

hi, can you try this interface btSoftBody::generateClusters(int k,int maxiterations) and ajust the parameter k to see if can get the expected result. that's exactly what I forgot. I called pSoftBody->generateClusters(16) and pSoftBody->setMargin(0.01) and it worked great. But larger margin value li...
by m_iDev_792
Sat Apr 13, 2019 4:40 am
Forum: General Bullet Physics Support and Feedback
Topic: Petal simulation
Replies: 5
Views: 5250

Re: Petal simulation

Could you try these two interfaces? i still think it is hard to implement your feature. the point is what will be used to overcome the gravity. psb->setPose(false, true) psb->generateClusters(8) Hi steven, thanks for your reply. I set the mass of top node and bottom node of petal to zero to overcom...
by m_iDev_792
Fri Apr 12, 2019 12:50 pm
Forum: General Bullet Physics Support and Feedback
Topic: Petal simulation
Replies: 5
Views: 5250

Petal simulation

Hi, I'm new to Bullet physics. I'm working on plant modeling and I want to use Bullet physics to simulate petal material and handle the collisions between petals of different flowers. In my program petals are represented by triangle faces and they have no volume just like cloth and paper, but I want...