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

Globals.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: Globals.h
00003 // Description: Internal physics file
00004 //
00005 // Copyright (C) 2004 - 2006 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
00010 //---------------------------------------------------------------------------------
00011 
00012 
00013 #ifndef TA_GLOBALS_H
00014 #define TA_GLOBALS_H
00015 
00016 #ifndef TA_VECTOR_H
00017 #include "../Common/Vector.h"
00018 #endif // TA_VECTOR_H
00019 
00020 namespace TA
00021 {
00022 
00023 class Physics;
00024 
00025 struct Globals
00026 {   
00027     Physics* pPhysics;
00028     int nMaxNumCollisions;
00029     int nMaxNumMovingObjects;
00030     int nMaxNumDynamicObjectPairs;  
00031     int nSlowSolverMaxNumConstraints;
00032     int nSlowSolverMaxNumObjects;
00033     float fPhysicsDt;
00034     int nPhysicsPass;
00035 
00036     Physics& GetPhysics() { TA_ASSERT(pPhysics); return *pPhysics; }
00037 };
00038 
00039 }
00040 
00041 #endif // TA_GLOBALS_H


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