From aac528faad0739a71ebb23f9ae9e88bb8f1215c8 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Tue, 20 Dec 2011 18:20:52 +0000 Subject: [PATCH] tweak capsule collision values, to show issue --- Demos/SoftDemo/SoftDemo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demos/SoftDemo/SoftDemo.cpp b/Demos/SoftDemo/SoftDemo.cpp index 918423c1f..cd0c8aa7e 100644 --- a/Demos/SoftDemo/SoftDemo.cpp +++ b/Demos/SoftDemo/SoftDemo.cpp @@ -572,12 +572,12 @@ static void Init_CapsuleCollision(SoftDemo* pdemo) startTransform.setOrigin(btVector3(0,h-2,0)); btCollisionShape* capsuleShape= new btCapsuleShapeX(1,5); -// capsuleShape->setMargin( 0.5 ); + capsuleShape->setMargin( 0.5 ); // capsule->setLocalScaling(btVector3(5,1,1)); // btRigidBody* body=pdemo->localCreateRigidBody(20,startTransform,capsuleShape); btRigidBody* body=pdemo->localCreateRigidBody(0,startTransform,capsuleShape); -// body->setFriction( 0.8f ); + body->setFriction( 0.8f ); int fixed=0;//4+8; btSoftBody* psb=btSoftBodyHelpers::CreatePatch(pdemo->m_softBodyWorldInfo,btVector3(-s,h,-s), @@ -585,7 +585,7 @@ static void Init_CapsuleCollision(SoftDemo* pdemo) btVector3(-s,h,+s), btVector3(+s,h,+s),r,r,fixed,true); pdemo->getSoftDynamicsWorld()->addSoftBody(psb); -// psb->setTotalMass(1); + psb->setTotalMass(0.1); psb->m_cfg.piterations = 10; psb->m_cfg.citerations = 10;