make debugDrawWorld virtual for btSoftRigidDynamicsWorld

Move btSoftBodyWorldInfo to public, instead of nested, so it can be easier forward declared.
See http://code.google.com/p/bullet/issues/detail?id=78

Add get methods for damping/thresholds, see http://code.google.com/p/bullet/issues/detail?id=77
This commit is contained in:
erwin.coumans
2008-08-19 16:09:04 +00:00
parent 8eafab367f
commit 07b577fd86
8 changed files with 51 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ subject to the following restrictions:
#include "btSoftBodyInternals.h"
//
btSoftBody::btSoftBody(btSoftBody::btSoftBodyWorldInfo* worldInfo,int node_count, const btVector3* x, const btScalar* m)
btSoftBody::btSoftBody(btSoftBodyWorldInfo* worldInfo,int node_count, const btVector3* x, const btScalar* m)
:m_worldInfo(worldInfo)
{
/* Init */
@@ -1911,7 +1911,7 @@ for(i=0;i<m_clusters.size();++i)
if(n)
{
/* Frame */
const btScalar eps=0.0001;
const btScalar eps=btScalar(0.0001);
btMatrix3x3 m,r,s;
m[0]=m[1]=m[2]=btVector3(0,0,0);
m[0][0]=eps*1;