const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btAlignedObjectArray template class uses a subset of the stl::vector interface for its methods It...
int size() const
return the number of elements in the array
void copyFromArray(const btAlignedObjectArray &otherArray)
virtual float * getBasePointer() const
Return the base pointer in memory to the first vertex.
virtual ~btDefaultSoftBodySolver()
btDefaultSoftBodySolver()
virtual void updateSoftBodies()
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes.
virtual void predictMotion(btScalar solverdt)
Predict motion of soft bodies into next timestep.
btAlignedObjectArray< btSoftBody * > m_softBodySet
virtual void processCollision(btSoftBody *, const btCollisionObjectWrapper *)
virtual void optimize(btAlignedObjectArray< btSoftBody * > &softBodies, bool forceUpdate=false)
Optimize soft bodies in this solver.
virtual void copySoftBodyToVertexBuffer(const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer)
virtual void solveConstraints(btScalar solverdt)
Solve constraints for a set of soft bodies.
bool m_updateSolverConstants
Variable to define whether we need to update solver constants on the next iteration.
virtual void copyBackToSoftBodies(bool bMove=true)
Copy necessary data back to the original soft body source objects.
virtual bool checkInitialized()
Ensure that this solver is initialized.
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
void predictMotion(btScalar dt)
btVector3 can be used to represent 3D points and vectors.
const btScalar & getZ() const
Return the z value.
const btScalar & getY() const
Return the y value.
const btScalar & getX() const
Return the x value.