Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2008-10-04 01:42:19 +0400
committerErwin Coumans <blender@erwincoumans.com>2008-10-04 01:42:19 +0400
commit17c391b429145e01cbcc5744abb391c25e082dfb (patch)
tree9a8e161cfb79ea23b56add0850cd6bf8c04d5b2e /extern/bullet2/src
parent56b560bb6c26181eb863f7ace82591fbd9b70d08 (diff)
bugfix: add Ghost support for soft bodies, so that they don't collide with ghosts, and can be ghost themselves.
Diffstat (limited to 'extern/bullet2/src')
-rw-r--r--extern/bullet2/src/BulletSoftBody/btSoftBody.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp b/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp
index 0a27dbcedb5..1604167b6ef 100644
--- a/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp
+++ b/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp
@@ -2439,6 +2439,10 @@ void btSoftBody::PSolve_RContacts(btSoftBody* psb,btScalar kst,btScalar ti)
for(int i=0,ni=psb->m_rcontacts.size();i<ni;++i)
{
const RContact& c=psb->m_rcontacts[i];
+ ///skip object that don't have collision response
+ if (!psb->getWorldInfo()->m_dispatcher->needsResponse(psb,c.m_cti.m_body))
+ continue;
+
const sCti& cti=c.m_cti;
const btVector3 va=cti.m_body->getVelocityInLocalPoint(c.m_c1)*dt;
const btVector3 vb=c.m_node->m_x-c.m_node->m_q;