True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

void TA::Physics::SetMaxNumObjectPairs (
int   nMaxNumObjectPairs  )
 

Call this function to set the maximum number of object pairs.

True axis keeps a record objects that are close to each other. This is kept in a list of object pairs. This helps with efficiency and allows temporal collision testing information to be held between updates. This value controls the amount of memory allocated for object pairs. If this number is too low, efficiency may be impacted and if not enough pairs are available, some collisions may be ignored. If this number is too high, memory is wasted and in some cases, memory cache efficiency may be impacted.

This value is set to the maximum number of collisions by default. This is probably a good value in most situations.

Parameters:
nMaxNumObjectPairs
The maximum number of objects in a group of colliding objects that the slow solver can handle.
See also:
TA::Physics::GetMaxNumObjectPairs().
Note:
Any changes to this value will not be made effective until a call to TA::Physics::SetupSimulation. Note that SetupSimulation is automatically called from TA::Physics::Update, TA::Physics::AddDynamicObject and TA::Physics::AddStaticObject. Calling TA::Physics::SetupSimulation may result memory reallocation and large processor overhead. Changing this value frequently will result in performance loss.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.