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

void TA::Physics::SetWorldDimensions (
const AABB &   worldAABB  )
 

Call this function to set the size and position of the world that the physics simulation will run in. This may affect the speed and memory usage of culling algorithms. The size of the world should be made only as big as necessary.

The default value is:

    worldAABB.v3Center.x = 0;
    worldAABB.v3Center.y = 0;
    worldAABB.v3Center.z = 0;
    worldAABB.v3Extent.x = 1000.0f;
    worldAABB.v3Center.y = 1000.0f;
    worldAABB.v3Center.z = 1000.0f;

Parameters:
worldAABB
An axis aligned bounding box holding the new location and size of the world.
See also:
TA::Physics::GetWorldDimensions().
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.
Examples:
SimplePhysicsSimulationExample.cpp.



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