Blender  V3.3
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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, and NULL.

Member Function Documentation

◆ setup()

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

◆ validate()

bool btBatchedConstraints::validate ( btConstraintArray constraints,
const btAlignedObjectArray< btSolverBody > &  bodies 
) const

Member Data Documentation

◆ m_batches

btAlignedObjectArray<Range> btBatchedConstraints::m_batches

◆ m_constraintIndices

btAlignedObjectArray<int> btBatchedConstraints::m_constraintIndices

◆ m_debugDrawer

btIDebugDraw* btBatchedConstraints::m_debugDrawer

◆ m_phaseGrainSize

btAlignedObjectArray<char> btBatchedConstraints::m_phaseGrainSize

◆ m_phaseOrder

btAlignedObjectArray<int> btBatchedConstraints::m_phaseOrder

◆ m_phases

btAlignedObjectArray<Range> btBatchedConstraints::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: