Blender
V3.3
|
#include <btBatchedConstraints.h>
Classes | |
struct | Range |
Public Types | |
enum | BatchingMethod { BATCHING_METHOD_SPATIAL_GRID_2D , BATCHING_METHOD_SPATIAL_GRID_3D , BATCHING_METHOD_COUNT } |
Public Member Functions | |
btBatchedConstraints () | |
void | setup (btConstraintArray *constraints, const btAlignedObjectArray< btSolverBody > &bodies, BatchingMethod batchingMethod, int minBatchSize, int maxBatchSize, btAlignedObjectArray< char > *scratchMemory) |
bool | validate (btConstraintArray *constraints, const btAlignedObjectArray< btSolverBody > &bodies) const |
Public Attributes | |
btAlignedObjectArray< int > | m_constraintIndices |
btAlignedObjectArray< Range > | m_batches |
btAlignedObjectArray< Range > | m_phases |
btAlignedObjectArray< char > | m_phaseGrainSize |
btAlignedObjectArray< int > | m_phaseOrder |
btIDebugDraw * | m_debugDrawer |
Static Public Attributes | |
static bool | s_debugDrawBatches = false |
Definition at line 26 of file btBatchedConstraints.h.
Enumerator | |
---|---|
BATCHING_METHOD_SPATIAL_GRID_2D | |
BATCHING_METHOD_SPATIAL_GRID_3D | |
BATCHING_METHOD_COUNT |
Definition at line 28 of file btBatchedConstraints.h.
|
inline |
Definition at line 52 of file btBatchedConstraints.h.
References m_debugDrawer, and NULL.
void btBatchedConstraints::setup | ( | btConstraintArray * | constraints, |
const btAlignedObjectArray< btSolverBody > & | bodies, | ||
BatchingMethod | batchingMethod, | ||
int | minBatchSize, | ||
int | maxBatchSize, | ||
btAlignedObjectArray< char > * | scratchMemory | ||
) |
Definition at line 1063 of file btBatchedConstraints.cpp.
References BATCHING_METHOD_SPATIAL_GRID_2D, constraints, debugDrawAllBatches(), s_debugDrawBatches, setupSingleBatch(), and setupSpatialGridBatchesMt().
Referenced by setupBatchedContactConstraints(), and setupBatchedJointConstraints().
bool btBatchedConstraints::validate | ( | btConstraintArray * | constraints, |
const btAlignedObjectArray< btSolverBody > & | bodies | ||
) | const |
Definition at line 46 of file btBatchedConstraints.cpp.
References batch, btBatchedConstraints::Range::begin, btAssert, btSolverBody, btSolverConstraint, constraints, btBatchedConstraints::Range::end, m_batches, m_constraintIndices, m_phases, btAlignedObjectArray< T >::resize(), btAlignedObjectArray< T >::resizeNoInitialize(), and btAlignedObjectArray< T >::size().
Referenced by setupSpatialGridBatchesMt().
btAlignedObjectArray<Range> btBatchedConstraints::m_batches |
Definition at line 44 of file btBatchedConstraints.h.
Referenced by debugDrawSingleBatch(), SetupContactConstraintsLoop::forLoop(), randomizeBatchedConstraintOrdering(), setupSingleBatch(), ContactSplitPenetrationImpulseSolverLoop::sumLoop(), JointSolverLoop::sumLoop(), ContactSolverLoop::sumLoop(), ContactFrictionSolverLoop::sumLoop(), InterleavedContactSolverLoop::sumLoop(), ContactRollingFrictionSolverLoop::sumLoop(), validate(), and writeOutBatches().
btAlignedObjectArray<int> btBatchedConstraints::m_constraintIndices |
Definition at line 43 of file btBatchedConstraints.h.
Referenced by debugDrawSingleBatch(), SetupContactConstraintsLoop::forLoop(), randomizeBatchedConstraintOrdering(), setupSingleBatch(), ContactSplitPenetrationImpulseSolverLoop::sumLoop(), JointSolverLoop::sumLoop(), ContactSolverLoop::sumLoop(), ContactFrictionSolverLoop::sumLoop(), InterleavedContactSolverLoop::sumLoop(), ContactRollingFrictionSolverLoop::sumLoop(), validate(), writeOutBatches(), writeOutConstraintIndicesForRangeOfBatches(), and writeOutConstraintIndicesMt().
btIDebugDraw* btBatchedConstraints::m_debugDrawer |
Definition at line 48 of file btBatchedConstraints.h.
Referenced by btBatchedConstraints(), debugDrawAllBatches(), debugDrawPhase(), and debugDrawSingleBatch().
btAlignedObjectArray<char> btBatchedConstraints::m_phaseGrainSize |
Definition at line 46 of file btBatchedConstraints.h.
Referenced by resolveAllContactConstraints(), resolveAllContactFrictionConstraints(), setupSingleBatch(), and writeGrainSizes().
btAlignedObjectArray<int> btBatchedConstraints::m_phaseOrder |
Definition at line 47 of file btBatchedConstraints.h.
Referenced by randomizeBatchedConstraintOrdering(), resolveAllContactConstraints(), resolveAllContactConstraintsInterleaved(), resolveAllContactFrictionConstraints(), resolveAllJointConstraints(), resolveAllRollingFrictionConstraints(), setupAllContactConstraints(), setupSingleBatch(), and writeOutBatches().
btAlignedObjectArray<Range> btBatchedConstraints::m_phases |
Definition at line 45 of file btBatchedConstraints.h.
Referenced by debugDrawAllBatches(), debugDrawPhase(), resolveAllContactConstraints(), resolveAllContactConstraintsInterleaved(), resolveAllContactFrictionConstraints(), resolveAllJointConstraints(), resolveAllRollingFrictionConstraints(), setupAllContactConstraints(), setupSingleBatch(), validate(), writeGrainSizes(), and writeOutBatches().
|
static |
Definition at line 50 of file btBatchedConstraints.h.
Referenced by setup().