Bullet Collision Detection & Physics Library
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
btBatchedConstraints Struct Reference

#include <btBatchedConstraints.h>

Collaboration diagram for btBatchedConstraints:
Collaboration graph
[legend]

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 27 of file btBatchedConstraints.h.

Member Enumeration Documentation

Enumerator
BATCHING_METHOD_SPATIAL_GRID_2D 
BATCHING_METHOD_SPATIAL_GRID_3D 
BATCHING_METHOD_COUNT 

Definition at line 29 of file btBatchedConstraints.h.

Constructor & Destructor Documentation

btBatchedConstraints::btBatchedConstraints ( )
inline

Definition at line 53 of file btBatchedConstraints.h.

Member Function Documentation

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

Definition at line 1104 of file btBatchedConstraints.cpp.

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

Definition at line 48 of file btBatchedConstraints.cpp.

Member Data Documentation

btAlignedObjectArray<Range> btBatchedConstraints::m_batches

Definition at line 45 of file btBatchedConstraints.h.

btAlignedObjectArray<int> btBatchedConstraints::m_constraintIndices

Definition at line 44 of file btBatchedConstraints.h.

btIDebugDraw* btBatchedConstraints::m_debugDrawer

Definition at line 49 of file btBatchedConstraints.h.

btAlignedObjectArray<char> btBatchedConstraints::m_phaseGrainSize

Definition at line 47 of file btBatchedConstraints.h.

btAlignedObjectArray<int> btBatchedConstraints::m_phaseOrder

Definition at line 48 of file btBatchedConstraints.h.

btAlignedObjectArray<Range> btBatchedConstraints::m_phases

Definition at line 46 of file btBatchedConstraints.h.

bool btBatchedConstraints::s_debugDrawBatches = false
static

Definition at line 51 of file btBatchedConstraints.h.


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