add demo to test soft body friction

This commit is contained in:
Xuchen Han
2019-09-19 15:34:11 -07:00
parent cca220eb27
commit 55ebafc755
7 changed files with 481 additions and 4 deletions

View File

@@ -13,8 +13,8 @@
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef BT_DEFORMABLE_RIGID_DYNAMICS_WORLD_H
#define BT_DEFORMABLE_RIGID_DYNAMICS_WORLD_H
#ifndef BT_DEFORMABLE_MULTIBODY_DYNAMICS_WORLD_H
#define BT_DEFORMABLE_MULTIBODY_DYNAMICS_WORLD_H
#include "btSoftMultiBodyDynamicsWorld.h"
#include "btDeformableLagrangianForce.h"
@@ -36,7 +36,6 @@ typedef btAlignedObjectArray<btSoftBody*> btSoftBodyArray;
class btDeformableMultiBodyDynamicsWorld : public btMultiBodyDynamicsWorld
{
typedef btAlignedObjectArray<btVector3> TVStack;
// using TVStack = btAlignedObjectArray<btVector3>;
///Solver classes that encapsulate multiple deformable bodies for solving
btDeformableBodySolver* m_deformableBodySolver;
btSoftBodyArray m_softBodies;
@@ -162,4 +161,4 @@ public:
}
};
#endif //BT_DEFORMABLE_RIGID_DYNAMICS_WORLD_H
#endif //BT_DEFORMABLE_MULTIBODY_DYNAMICS_WORLD_H