[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16906] trunk/blender/extern/bullet2/src/ BulletSoftBody/btSoftBody.cpp: bugfix: add Ghost support for soft bodies, so that they don't collide with ghosts, and can be ghost themselves.
Erwin Coumans
blender at erwincoumans.com
Fri Oct 3 23:42:20 CEST 2008
Revision: 16906
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16906
Author: erwin
Date: 2008-10-03 23:42:19 +0200 (Fri, 03 Oct 2008)
Log Message:
-----------
bugfix: add Ghost support for soft bodies, so that they don't collide with ghosts, and can be ghost themselves.
Modified Paths:
--------------
trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp
Modified: trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp
===================================================================
--- trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp 2008-10-03 20:51:56 UTC (rev 16905)
+++ trunk/blender/extern/bullet2/src/BulletSoftBody/btSoftBody.cpp 2008-10-03 21:42:19 UTC (rev 16906)
@@ -2439,6 +2439,10 @@
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;
More information about the Bf-blender-cvs
mailing list