virtual void copySoftBodyToVertexBuffer(const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer)
btDefaultSoftBodySolver()
bool m_updateSolverConstants
Variable to define whether we need to update solver constants on the next iteration.
virtual void optimize(btAlignedObjectArray< btSoftBody * > &softBodies, bool forceUpdate=false)
Optimize soft bodies in this solver.
virtual void copyBackToSoftBodies(bool bMove=true)
Copy necessary data back to the original soft body source objects.
virtual void predictMotion(btScalar solverdt)
Predict motion of soft bodies into next timestep.
virtual SolverTypes getSolverType() const
Return the type of the solver.
virtual void updateSoftBodies()
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes.
btAlignedObjectArray< btSoftBody * > m_softBodySet
virtual bool checkInitialized()
Ensure that this solver is initialized.
virtual void solveConstraints(btScalar solverdt)
Solve constraints for a set of soft bodies.
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
virtual void processCollision(btSoftBody *, const btCollisionObjectWrapper *)
virtual ~btDefaultSoftBodySolver()