Bullet softbody cloth was stretched away

Please don't post Bullet support questions here, use the above forums instead.
Post Reply
ericking
Posts: 3
Joined: Tue Jul 16, 2019 10:14 am

Bullet softbody cloth was stretched away

Post by ericking »

I am new one for bullet softbody simulation, I get a cloth mesh with its local space vertexs and indices from other graphic engine, and then I used createFromTrimesh(...) to create a softbody successfully, and then I create a rigidbody in body for soft cloth to attached, some details as follow image. and then add into dynamic world to step simulate.
QQ图片20190723154642.png
QQ图片20190723154642.png (171.47 KiB) Viewed 27064 times
for attached to rigid body , I set three anchor points from soft cloth skirt mesh with setMass 0,and then get rigid body transform matrix4x4(called wmat) at every frame .when get a new frame simulation cloth vertexs from bullet, I will transform these new simulated vertexs by wmat, and covered the cloth mesh vertexs ,and give it back to my grapic engine to draw .
But the reslut is very strange like this :
res.png
res.png (188.74 KiB) Viewed 27064 times
Can anyone help me ,what is wrong with it?
steven
Posts: 83
Joined: Mon Nov 05, 2018 8:16 am
Location: China

Re: Bullet softbody cloth was stretched away

Post by steven »

very interesting! have you found the rootcause?
Post Reply