summaryrefslogtreecommitdiff
path: root/thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h')
-rw-r--r--thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h b/thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h
index 1c17ffcbb2..50bd735165 100644
--- a/thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h
+++ b/thirdparty/bullet/BulletSoftBody/btDefaultSoftBodySolver.h
@@ -16,25 +16,23 @@ subject to the following restrictions:
#ifndef BT_SOFT_BODY_DEFAULT_SOLVER_H
#define BT_SOFT_BODY_DEFAULT_SOLVER_H
-
#include "BulletSoftBody/btSoftBodySolvers.h"
#include "btSoftBodySolverVertexBuffer.h"
struct btCollisionObjectWrapper;
class btDefaultSoftBodySolver : public btSoftBodySolver
{
-protected:
+protected:
/** Variable to define whether we need to update solver constants on the next iteration */
bool m_updateSolverConstants;
- btAlignedObjectArray< btSoftBody * > m_softBodySet;
-
+ btAlignedObjectArray<btSoftBody *> m_softBodySet;
public:
btDefaultSoftBodySolver();
-
+
virtual ~btDefaultSoftBodySolver();
-
+
virtual SolverTypes getSolverType() const
{
return DEFAULT_SOLVER;
@@ -42,22 +40,21 @@ public:
virtual bool checkInitialized();
- virtual void updateSoftBodies( );
+ virtual void updateSoftBodies();
- virtual void optimize( btAlignedObjectArray< btSoftBody * > &softBodies,bool forceUpdate=false );
+ virtual void optimize(btAlignedObjectArray<btSoftBody *> &softBodies, bool forceUpdate = false);
virtual void copyBackToSoftBodies(bool bMove = true);
- virtual void solveConstraints( float solverdt );
-
- virtual void predictMotion( float solverdt );
+ virtual void solveConstraints(float solverdt);
- virtual void copySoftBodyToVertexBuffer( const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer );
+ virtual void predictMotion(float solverdt);
- virtual void processCollision( btSoftBody *, const btCollisionObjectWrapper* );
+ virtual void copySoftBodyToVertexBuffer(const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer);
- virtual void processCollision( btSoftBody*, btSoftBody* );
+ virtual void processCollision(btSoftBody *, const btCollisionObjectWrapper *);
+ virtual void processCollision(btSoftBody *, btSoftBody *);
};
-#endif // #ifndef BT_ACCELERATED_SOFT_BODY_CPU_SOLVER_H
+#endif // #ifndef BT_ACCELERATED_SOFT_BODY_CPU_SOLVER_H