|
Blender V4.3
|
#include <btDefaultSoftBodySolver.h>
Inherits btSoftBodySolver.
Protected Attributes | |
| bool | m_updateSolverConstants |
| btAlignedObjectArray< btSoftBody * > | m_softBodySet |
Protected Attributes inherited from btSoftBodySolver | |
| int | m_numberOfPositionIterations |
| int | m_numberOfVelocityIterations |
| float | m_timeScale |
Additional Inherited Members | |
Public Types inherited from btSoftBodySolver | |
| enum | SolverTypes { DEFAULT_SOLVER , CPU_SOLVER , CL_SOLVER , CL_SIMD_SOLVER , DX_SOLVER , DX_SIMD_SOLVER , DEFORMABLE_SOLVER } |
Definition at line 23 of file btDefaultSoftBodySolver.h.
| btDefaultSoftBodySolver::btDefaultSoftBodySolver | ( | ) |
Definition at line 24 of file btDefaultSoftBodySolver.cpp.
References m_updateSolverConstants.
|
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.
|
virtual |
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.
References btVertexBufferDescriptor::CPU_BUFFER, btCPUVertexBufferDescriptor::getBasePointer(), btVertexBufferDescriptor::getBufferType(), btVertexBufferDescriptor::getNormalOffset(), btVertexBufferDescriptor::getNormalStride(), btVertexBufferDescriptor::getVertexOffset(), btVertexBufferDescriptor::getVertexStride(), btVertexBufferDescriptor::hasNormals(), btVertexBufferDescriptor::hasVertexPositions(), btSoftBody::m_nodes, numVertices(), and btAlignedObjectArray< T >::size().
|
inlinevirtual |
Return the type of the solver.
Implements btSoftBodySolver.
Definition at line 36 of file btDefaultSoftBodySolver.h.
References btSoftBodySolver::DEFAULT_SOLVER.
|
virtual |
Optimize soft bodies in this solver.
Implements btSoftBodySolver.
Definition at line 41 of file btDefaultSoftBodySolver.cpp.
References btAlignedObjectArray< T >::copyFromArray(), and m_softBodySet.
|
virtual |
Predict motion of soft bodies into next timestep
Implements btSoftBodySolver.
Definition at line 135 of file btDefaultSoftBodySolver.cpp.
References m_softBodySet, btSoftBody::predictMotion(), and btAlignedObjectArray< T >::size().
|
virtual |
Process a collision between two soft bodies
Implements btSoftBodySolver.
Definition at line 124 of file btDefaultSoftBodySolver.cpp.
References btSoftBody::defaultCollisionHandler().
|
virtual |
Definition at line 130 of file btDefaultSoftBodySolver.cpp.
References btSoftBody::defaultCollisionHandler().
|
virtual |
Solve constraints for a set of soft bodies
Implements btSoftBodySolver.
Definition at line 63 of file btDefaultSoftBodySolver.cpp.
References m_softBodySet, btAlignedObjectArray< T >::size(), and btSoftBody::solveConstraints().
|
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.
References btSoftBody::integrateMotion(), m_softBodySet, and btAlignedObjectArray< T >::size().
|
protected |
Definition at line 29 of file btDefaultSoftBodySolver.h.
Referenced by optimize(), predictMotion(), solveConstraints(), and updateSoftBodies().
|
protected |
Variable to define whether we need to update solver constants on the next iteration
Definition at line 27 of file btDefaultSoftBodySolver.h.
Referenced by btDefaultSoftBodySolver().