Bullet softbody cloth was stretched away

Please don't post Bullet support questions here, use the above forums instead.
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
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
Can anyone help me ,what is wrong with it?
You do not have the required permissions to view the files attached to this post.
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?