contact normal should point from B to A (to be consistent with Bullet 2.x)

stringify: pre-allocate bigger buffer (10MB, workaround)
This commit is contained in:
erwincoumans
2013-08-10 12:08:15 -07:00
parent d158507c03
commit ac23dbc4be
17 changed files with 220 additions and 209 deletions

View File

@@ -36,9 +36,9 @@ B3_ATTRIBUTE_ALIGNED16(struct) b3Contact4 : public b3Contact4Data
void setFrictionCoeff( float c ) { b3Assert( c >= 0.f && c <= 1.f ); m_frictionCoeffCmp = (unsigned short)(c*0xffff); }
//float& getNPoints() { return m_worldNormal[3]; }
int getNPoints() const { return (int) m_worldNormal[3]; }
int getNPoints() const { return (int) m_worldNormalOnB[3]; }
float getPenetration(int idx) const { return m_worldPos[idx][3]; }
float getPenetration(int idx) const { return m_worldPosB[idx][3]; }
bool isInvalid() const { return (getBodyA()==0 || getBodyB()==0); }
};