refactoring
This commit is contained in:
@@ -13,6 +13,7 @@ subject to the following restrictions:
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
|
||||
#include "DemoApplication.h"
|
||||
#include "LinearMath/btIDebugDraw.h"
|
||||
#include "BulletDynamics/Dynamics/btDynamicsWorld.h"
|
||||
|
||||
@@ -4,4 +4,4 @@ SubInclude TOP Extras PhysicsInterface ;
|
||||
SubInclude TOP Extras ConvexDecomposition ;
|
||||
SubInclude TOP Extras COLLADA_DOM ;
|
||||
SubInclude TOP Extras LibXML ;
|
||||
|
||||
SubInclude TOP Extras GPUphysics ;
|
||||
|
||||
@@ -31,11 +31,11 @@ class BP_Proxy;
|
||||
///todo: fill all the empty CcdPhysicsController methods, hook them up to the btRigidBody class
|
||||
|
||||
//'temporarily' global variables
|
||||
float gDeactivationTime = 2.f;
|
||||
bool gDisableDeactivation = false;
|
||||
extern float gDeactivationTime;
|
||||
extern bool gDisableDeactivation;
|
||||
|
||||
float gLinearSleepingTreshold = 0.8f;
|
||||
float gAngularSleepingTreshold = 1.0f;
|
||||
extern float gLinearSleepingTreshold;
|
||||
extern float gAngularSleepingTreshold;
|
||||
|
||||
#include "BulletDynamics/Dynamics/btMassProps.h"
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ subject to the following restrictions:
|
||||
#include "BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h"
|
||||
|
||||
|
||||
|
||||
//profiling/timings
|
||||
#include "LinearMath/btQuickprof.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,12 @@ subject to the following restrictions:
|
||||
#include <LinearMath/btTransformUtil.h>
|
||||
|
||||
float gLinearAirDamping = 1.f;
|
||||
//'temporarily' global variables
|
||||
float gDeactivationTime = 2.f;
|
||||
bool gDisableDeactivation = false;
|
||||
|
||||
float gLinearSleepingTreshold = 0.8f;
|
||||
float gAngularSleepingTreshold = 1.0f;
|
||||
static int uniqueId = 0;
|
||||
|
||||
btRigidBody::btRigidBody( const btMassProps& massProps,btScalar linearDamping,btScalar angularDamping,btScalar friction,btScalar restitution)
|
||||
|
||||
@@ -4,6 +4,6 @@ ${BULLET_PHYSICS_SOURCE_DIR}/src }
|
||||
)
|
||||
|
||||
ADD_LIBRARY(LibLinearMath
|
||||
GenQuickprof.cpp
|
||||
btQuickprof.cpp
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user