Hi,
I've already figured out how to read DircectX file (hat.x). I've created a hat using
Code:
SoftBody psb = SoftBodyHelpers.CreateFromTriMesh(softBodyWorldInfo, intVerBuf, intIndexBuffer);
I've also changed some parameters, as it was in Init_Bunny Demo:
Code:
psb.GenerateBendingConstraints(2);
psb.Cfg.PIterations = 2;
psb.RandomizeConstraints();
psb.Scale(new Vector3(10, 10, 10));
psb.SetTotalMass(50, true);
But the model is still soft, at when it collides with ground it falls apart.
I want it to bounce, just like bunny or torus in SoftDemo app.
And I don't want it to destroy.
This is what happens:
http://imageshack.us/photo/my-images/546/hatd.pngThanks for all help.