void Init_TetraBunny() { SoftBody psb = SoftBodyHelpers.CreateFromTetGenData(softBodyWorldInfo, Bunny.GetElements(), null, Bunny.GetNodes(), false, true, true); SoftWorld.AddSoftBody(psb); psb.Rotate(Quaternion.RotationYawPitchRoll((float)Math.PI / 2, 0, 0)); psb.SetVolumeMass(150); psb.Cfg.PIterations = 2; //psb.Cfg.PIterations = 1; cutting = false; //psb.CollisionShape.Margin = 0.01f; psb.Cfg.Collisions = FCollisions.CLSS | FCollisions.CLRS; //| FCollisions.CLSelf; ///pass zero in generateClusters to create cluster for each tetrahedron or triangle psb.GenerateClusters(0); //psb.Materials[0].Lst = 0.2f; psb.Cfg.DF = 10; }