2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 ///////////////////////////////////////////////////////////////////////////////
7 // $Header: r:/t2repos/thief2/src/physics/phconst.h,v 1.29 2000/02/23 23:57:54 adurant Exp $
9 // Collected physics constants
17 ///////////////////////////////////////////////////////////////////////////////
20 // Minimum relative velocity below which we stick to a terrain surface
22 const mxs_real kBreakTerrainContactVel
= 5.0;
25 // Minimum relative velocity below which we stick to an object
27 const mxs_real kBreakObjectContactVel
= 5.0;
30 // Minimum relative velocity above which we destroy all contacts
32 const mxs_real kBreakAllObjectContactVel
= 1000.0;
35 // Distance at which we judge terrain contact to be broken
37 const mxs_real kBreakTerrainContactDist
= 0.1;
40 // Distance at which we judge object contact to be broken
42 const mxs_real kBreakObjectContactDist
= 0.2;
45 // Distance to backup from a collision (squared)
47 const mxs_real kCollisionBackup2
= 0.01;
50 // Max proportion of distance travelled to backup
52 const mxs_real kCollisionBackupMax
= 0.5;
55 // Max number of collisions we allow/frame/model
57 const int kMaxFrameCollisions
= 32;
60 // Pump some energy into object vs. object collisions...
62 const mxs_real kObjectCollisionEnergy
= 0.0;
67 EXTERN mxs_vector kGravityDir
;
68 EXTERN mxs_real kGravityAmt
;
71 // Default terrain elasticity
73 const mxs_real kTerrainBounce
= 0.1;
76 // Min velocity magnitude a sliding object can have before it
79 const mxs_real kMinVelocityMag
= 2;
82 // Amount of friction when sliding (0 is ice, 10 is lots-o-friction).
84 extern mxs_real kFrictionFactor
;
87 // Maximum length of physics frame
89 extern int kMaxFrameLen
;
92 // Period of being squished
94 const long kSquishPeriod
= 500;
97 // Maximum velocity at which player head will spring, unless falling.
100 EXTERN mxs_real kSpringCapMag
;
102 ///////////////////////////////////////////////////////////////////////////////
104 #endif /* !__PHCONST_H */