add stable NeoHookean Model

This commit is contained in:
Xuchen Han
2019-08-19 12:03:45 -07:00
parent 04595961cd
commit 44e7c4a96d
3 changed files with 139 additions and 2 deletions

View File

@@ -23,13 +23,13 @@ enum btDeformableLagrangianForceType
{
BT_GRAVITY_FORCE = 1,
BT_MASSSPRING_FORCE = 2,
BT_COROTATED_FORCE = 3
BT_COROTATED_FORCE = 3,
BT_NEOHOOKEAN_FORCE = 4
};
class btDeformableLagrangianForce
{
public:
// using TVStack = btAlignedObjectArray<btVector3>;
typedef btAlignedObjectArray<btVector3> TVStack;
btAlignedObjectArray<btSoftBody *> m_softBodies;
const btAlignedObjectArray<btSoftBody::Node*>* m_nodes;