-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathStdAfx.h
40 lines (30 loc) · 1.49 KB
/
StdAfx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <ctype.h>
#include <tier1/tier1.h>
#include <tier1/utlsymbol.h>
#include <tier0/platform.h>
#include <vphysics_interface.h>
#include <vphysics/collision_set.h> // THIS FILE HAS NO INCLUDE GUARDS!
// NEW INTERFACE HEADERS
#include "vphysics_interfaceV32.h"
#include <cmodel.h>
#include <btBulletDynamicsCommon.h>
#include <BulletSoftBody/btSoftRigidDynamicsWorld.h>
#include <BulletCollision/CollisionShapes/btMaterial.h>
#include <BulletCollision/CollisionShapes/btShapeHull.h>
#include <BulletCollision/CollisionDispatch/btGhostObject.h>
#if defined(_WIN32)
#define DEBUG_DRAW 0
#endif
// Probably shouldn't be using defines for these.
//lwss: These are the sleep velocity thresholds. -- Go under these and the object will settle/deactivate
//Having issues with objects never settling, i'm going to revert these to the default Bullet physics values.
#define SLEEP_LINEAR_THRESHOLD 0.8 // m/s -- DEFAULT
#define SLEEP_ANGULAR_THRESHOLD 1.0 // rad/s -- DEFAULT
//#define SLEEP_LINEAR_THRESHOLD 0.15 // m/s
//#define SLEEP_ANGULAR_THRESHOLD 0.1 // rad/s
//lwss end
#define DEBUG_DRAW 1
#define NOT_IMPLEMENTED DevWarning("VPhysics UNIMPLEMENTED: %s (%s:%u)\n", __FUNCTION__, __FILE__, __LINE__);
#define NOT_IMPLEMENTED_CRITICAL Error("VPhysics UNIMPLEMENTED: %s (%s:%u)\n", __FUNCTION__, __FILE__, __LINE__);
// NOTE: Not available on non-MSVC builds due to use of __asm.
//#define NOT_IMPLEMENTED_BREAK {DevWarning("VPhysics UNIMPLEMENTED: %s (%s:%u)\n", __FUNCTION__, __FILE__, __LINE__); __asm int 3;}