Improve damping formula in btRigidBody::applyDamping
Thanks to sparkprime, see http://code.google.com/p/bullet/issues/detail?id=74 Fixed btCompoundShape/btCapsuleShape/btGImpactShape for missing m_shapeType, and added an assert in DemoApplication::localCreateRigidBody for invalid shape types.
This commit is contained in:
@@ -105,6 +105,7 @@ protected:
|
||||
public:
|
||||
btGImpactShapeInterface()
|
||||
{
|
||||
m_shapeType = GIMPACT_SHAPE_PROXYTYPE;
|
||||
m_localAABB.invalidate();
|
||||
m_needs_update = true;
|
||||
localScaling.setValue(1.f,1.f,1.f);
|
||||
@@ -150,10 +151,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual int getShapeType() const
|
||||
{
|
||||
return GIMPACT_SHAPE_PROXYTYPE;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\post You must call updateBound() for update the box set.
|
||||
|
||||
Reference in New Issue
Block a user