Bullet Collision Detection & Physics Library
|
#include <btDefaultSoftBodySolver.h>
Public Member Functions | |
btDefaultSoftBodySolver () | |
virtual | ~btDefaultSoftBodySolver () |
virtual SolverTypes | getSolverType () const |
Return the type of the solver. | |
virtual bool | checkInitialized () |
Ensure that this solver is initialized. | |
virtual void | updateSoftBodies () |
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes. | |
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 | solveConstraints (btScalar solverdt) |
Solve constraints for a set of soft bodies. | |
virtual void | predictMotion (btScalar solverdt) |
Predict motion of soft bodies into next timestep. | |
virtual void | copySoftBodyToVertexBuffer (const btSoftBody *const softBody, btVertexBufferDescriptor *vertexBuffer) |
virtual void | processCollision (btSoftBody *, const btCollisionObjectWrapper *) |
virtual void | processCollision (btSoftBody *, btSoftBody *) |
Process a collision between two soft bodies. | |
![]() | |
btSoftBodySolver () | |
virtual | ~btSoftBodySolver () |
virtual void | processCollision (btSoftBody *, const struct btCollisionObjectWrapper *)=0 |
Process a collision between one of the world's soft bodies and another collision object. | |
virtual void | setNumberOfPositionIterations (int iterations) |
Set the number of velocity constraint solver iterations this solver uses. | |
virtual int | getNumberOfPositionIterations () |
Get the number of velocity constraint solver iterations this solver uses. | |
virtual void | setNumberOfVelocityIterations (int iterations) |
Set the number of velocity constraint solver iterations this solver uses. | |
virtual int | getNumberOfVelocityIterations () |
Get the number of velocity constraint solver iterations this solver uses. | |
float | getTimeScale () |
Return the timescale that the simulation is using. | |
Protected Attributes | |
bool | m_updateSolverConstants |
Variable to define whether we need to update solver constants on the next iteration. | |
btAlignedObjectArray< btSoftBody * > | m_softBodySet |
![]() | |
int | m_numberOfPositionIterations |
int | m_numberOfVelocityIterations |
float | m_timeScale |
Additional Inherited Members | |
![]() | |
enum | SolverTypes { DEFAULT_SOLVER , CPU_SOLVER , CL_SOLVER , CL_SIMD_SOLVER , DX_SOLVER , DX_SIMD_SOLVER , DEFORMABLE_SOLVER , REDUCED_DEFORMABLE_SOLVER } |
Definition at line 23 of file btDefaultSoftBodySolver.h.
btDefaultSoftBodySolver::btDefaultSoftBodySolver | ( | ) |
Definition at line 24 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Definition at line 32 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Ensure that this solver is initialized.
Implements btSoftBodySolver.
Definition at line 58 of file btDefaultSoftBodySolver.cpp.
Copy necessary data back to the original soft body source objects.
Implements btSoftBodySolver.
Definition at line 37 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Definition at line 76 of file btDefaultSoftBodySolver.cpp.
|
inlinevirtual |
Return the type of the solver.
Implements btSoftBodySolver.
Definition at line 36 of file btDefaultSoftBodySolver.h.
|
virtual |
Optimize soft bodies in this solver.
Implements btSoftBodySolver.
Definition at line 41 of file btDefaultSoftBodySolver.cpp.
Predict motion of soft bodies into next timestep.
Implements btSoftBodySolver.
Definition at line 135 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Process a collision between two soft bodies.
Implements btSoftBodySolver.
Definition at line 124 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Definition at line 130 of file btDefaultSoftBodySolver.cpp.
Solve constraints for a set of soft bodies.
Implements btSoftBodySolver.
Definition at line 63 of file btDefaultSoftBodySolver.cpp.
|
virtual |
Perform necessary per-step updates of soft bodies such as recomputing normals and bounding boxes.
Implements btSoftBodySolver.
Definition at line 46 of file btDefaultSoftBodySolver.cpp.
|
protected |
Definition at line 29 of file btDefaultSoftBodySolver.h.
|
protected |
Variable to define whether we need to update solver constants on the next iteration.
Definition at line 27 of file btDefaultSoftBodySolver.h.