Blender V2.61 - r43446
Public Member Functions | Protected Attributes

btDefaultCollisionConfiguration Class Reference

#include <btDefaultCollisionConfiguration.h>

Inheritance diagram for btDefaultCollisionConfiguration:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 btDefaultCollisionConfiguration (const btDefaultCollisionConstructionInfo &constructionInfo=btDefaultCollisionConstructionInfo())
virtual ~btDefaultCollisionConfiguration ()
virtual btPoolAllocatorgetPersistentManifoldPool ()
 memory pools
virtual btPoolAllocatorgetCollisionAlgorithmPool ()
virtual btStackAllocgetStackAllocator ()
virtual btVoronoiSimplexSolvergetSimplexSolver ()
virtual
btCollisionAlgorithmCreateFunc
getCollisionAlgorithmCreateFunc (int proxyType0, int proxyType1)
void setConvexConvexMultipointIterations (int numPerturbationIterations=3, int minimumPointsPerturbationThreshold=3)

Protected Attributes

int m_persistentManifoldPoolSize
btStackAllocm_stackAlloc
bool m_ownsStackAllocator
btPoolAllocatorm_persistentManifoldPool
bool m_ownsPersistentManifoldPool
btPoolAllocatorm_collisionAlgorithmPool
bool m_ownsCollisionAlgorithmPool
btVoronoiSimplexSolverm_simplexSolver
btConvexPenetrationDepthSolverm_pdSolver
btCollisionAlgorithmCreateFuncm_convexConvexCreateFunc
btCollisionAlgorithmCreateFuncm_convexConcaveCreateFunc
btCollisionAlgorithmCreateFuncm_swappedConvexConcaveCreateFunc
btCollisionAlgorithmCreateFuncm_compoundCreateFunc
btCollisionAlgorithmCreateFuncm_swappedCompoundCreateFunc
btCollisionAlgorithmCreateFuncm_emptyCreateFunc
btCollisionAlgorithmCreateFuncm_sphereSphereCF
btCollisionAlgorithmCreateFuncm_boxBoxCF
btCollisionAlgorithmCreateFuncm_sphereTriangleCF
btCollisionAlgorithmCreateFuncm_triangleSphereCF
btCollisionAlgorithmCreateFuncm_planeConvexCF
btCollisionAlgorithmCreateFuncm_convexPlaneCF

Detailed Description

btCollisionConfiguration allows to configure Bullet collision detection stack allocator, pool memory allocators

Todo:
: describe the meaning

Definition at line 52 of file btDefaultCollisionConfiguration.h.


Constructor & Destructor Documentation

btDefaultCollisionConfiguration::btDefaultCollisionConfiguration ( const btDefaultCollisionConstructionInfo constructionInfo = btDefaultCollisionConstructionInfo())
btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration ( ) [virtual]

Member Function Documentation

btCollisionAlgorithmCreateFunc * btDefaultCollisionConfiguration::getCollisionAlgorithmCreateFunc ( int  proxyType0,
int  proxyType1 
) [virtual]
virtual btPoolAllocator* btDefaultCollisionConfiguration::getCollisionAlgorithmPool ( ) [inline, virtual]

Implements btCollisionConfiguration.

Definition at line 105 of file btDefaultCollisionConfiguration.h.

References m_collisionAlgorithmPool.

virtual btPoolAllocator* btDefaultCollisionConfiguration::getPersistentManifoldPool ( ) [inline, virtual]

memory pools

Implements btCollisionConfiguration.

Definition at line 100 of file btDefaultCollisionConfiguration.h.

References m_persistentManifoldPool.

virtual btVoronoiSimplexSolver* btDefaultCollisionConfiguration::getSimplexSolver ( ) [inline, virtual]

Definition at line 115 of file btDefaultCollisionConfiguration.h.

References m_simplexSolver.

virtual btStackAlloc* btDefaultCollisionConfiguration::getStackAllocator ( ) [inline, virtual]

Implements btCollisionConfiguration.

Definition at line 110 of file btDefaultCollisionConfiguration.h.

References m_stackAlloc.

void btDefaultCollisionConfiguration::setConvexConvexMultipointIterations ( int  numPerturbationIterations = 3,
int  minimumPointsPerturbationThreshold = 3 
)

Use this method to allow to generate multiple contact points between at once, between two objects using the generic convex-convex algorithm. By default, this feature is disabled for best performance.

Parameters:
numPerturbationIterationscontrols the number of collision queries. Set it to zero to disable the feature.
minimumPointsPerturbationThresholdis the minimum number of points in the contact cache, above which the feature is disabled 3 is a good value for both params, if you want to enable the feature. This is because the default contact cache contains a maximum of 4 points, and one collision query at the unperturbed orientation is performed first. See Bullet/Demos/CollisionDemo for an example how this feature gathers multiple points.
Todo:
we could add a per-object setting of those parameters, for level-of-detail collision detection.

Definition at line 293 of file btDefaultCollisionConfiguration.cpp.

References m_convexConvexCreateFunc, btConvexConvexAlgorithm::CreateFunc::m_minimumPointsPerturbationThreshold, and btConvexConvexAlgorithm::CreateFunc::m_numPerturbationIterations.


Member Data Documentation

Definition at line 57 of file btDefaultCollisionConfiguration.h.


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