Blender V5.0
btBatchedConstraints Struct Reference

#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< Rangem_batches
btAlignedObjectArray< Rangem_phases
btAlignedObjectArray< char > m_phaseGrainSize
btAlignedObjectArray< int > m_phaseOrder
btIDebugDrawm_debugDrawer

Static Public Attributes

static bool s_debugDrawBatches = false

Detailed Description

Definition at line 26 of file btBatchedConstraints.h.

Member Enumeration Documentation

◆ BatchingMethod

Enumerator
BATCHING_METHOD_SPATIAL_GRID_2D 
BATCHING_METHOD_SPATIAL_GRID_3D 
BATCHING_METHOD_COUNT 

Definition at line 28 of file btBatchedConstraints.h.

Constructor & Destructor Documentation

◆ btBatchedConstraints()

btBatchedConstraints::btBatchedConstraints ( )
inline

Definition at line 52 of file btBatchedConstraints.h.

References m_debugDrawer.

Member Function Documentation

◆ setup()

void btBatchedConstraints::setup ( btConstraintArray * constraints,
const btAlignedObjectArray< btSolverBody > & bodies,
BatchingMethod batchingMethod,
int minBatchSize,
int maxBatchSize,
btAlignedObjectArray< char > * scratchMemory )

◆ validate()

Member Data Documentation

◆ m_batches

◆ m_constraintIndices

◆ m_debugDrawer

btIDebugDraw* btBatchedConstraints::m_debugDrawer

◆ m_phaseGrainSize

btAlignedObjectArray<char> btBatchedConstraints::m_phaseGrainSize

◆ m_phaseOrder

◆ m_phases

◆ s_debugDrawBatches

bool btBatchedConstraints::s_debugDrawBatches = false
static

Definition at line 50 of file btBatchedConstraints.h.

Referenced by setup().


The documentation for this struct was generated from the following files: