doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
Physics_AF.cpp File Reference
#include "../../idlib/precompiled.h"
#include "../Game_local.h"

Go to the source code of this file.

Macros

#define AF_TIMINGS
 

Functions

void DrawTraceModelSilhouette (const idVec3 &projectionOrigin, const idClipModel *clipModel)
 
void idPhysics_AF_SavePState (idSaveGame *saveFile, const AFPState_t &state)
 
void idPhysics_AF_RestorePState (idRestoreGame *saveFile, AFPState_t &state)
 

Variables

END_CLASS const float ERROR_REDUCTION = 0.5f
 
const float ERROR_REDUCTION_MAX = 256.0f
 
const float LIMIT_ERROR_REDUCTION = 0.3f
 
const float LCP_EPSILON = 1e-7f
 
const float LIMIT_LCP_EPSILON = 1e-4f
 
const float CONTACT_LCP_EPSILON = 1e-6f
 
const float CENTER_OF_MASS_EPSILON = 1e-4f
 
const float NO_MOVE_TIME = 1.0f
 
const float NO_MOVE_TRANSLATION_TOLERANCE = 10.0f
 
const float NO_MOVE_ROTATION_TOLERANCE = 10.0f
 
const float MIN_MOVE_TIME = -1.0f
 
const float MAX_MOVE_TIME = -1.0f
 
const float IMPULSE_THRESHOLD = 500.0f
 
const float SUSPEND_LINEAR_VELOCITY = 10.0f
 
const float SUSPEND_ANGULAR_VELOCITY = 15.0f
 
const float SUSPEND_LINEAR_ACCELERATION = 20.0f
 
const float SUSPEND_ANGULAR_ACCELERATION = 30.0f
 
const idVec6 vec6_lcp_epsilon
 
const float AF_VELOCITY_MAX = 16000
 
const int AF_VELOCITY_TOTAL_BITS = 16
 
const int AF_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( AF_VELOCITY_MAX ) ) + 1
 
const int AF_VELOCITY_MANTISSA_BITS = AF_VELOCITY_TOTAL_BITS - 1 - AF_VELOCITY_EXPONENT_BITS
 
const float AF_FORCE_MAX = 1e20f
 
const int AF_FORCE_TOTAL_BITS = 16
 
const int AF_FORCE_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( AF_FORCE_MAX ) ) + 1
 
const int AF_FORCE_MANTISSA_BITS = AF_FORCE_TOTAL_BITS - 1 - AF_FORCE_EXPONENT_BITS
 

Macro Definition Documentation

#define AF_TIMINGS

Definition at line 57 of file Physics_AF.cpp.

Function Documentation

void DrawTraceModelSilhouette ( const idVec3 projectionOrigin,
const idClipModel clipModel 
)

Definition at line 6433 of file Physics_AF.cpp.

void idPhysics_AF_RestorePState ( idRestoreGame saveFile,
AFPState_t state 
)

Definition at line 6700 of file Physics_AF.cpp.

void idPhysics_AF_SavePState ( idSaveGame saveFile,
const AFPState_t state 
)

Definition at line 6687 of file Physics_AF.cpp.

Variable Documentation

Definition at line 7909 of file Physics_AF.cpp.

const int AF_FORCE_MANTISSA_BITS = AF_FORCE_TOTAL_BITS - 1 - AF_FORCE_EXPONENT_BITS

Definition at line 7910 of file Physics_AF.cpp.

const float AF_FORCE_MAX = 1e20f

Definition at line 7907 of file Physics_AF.cpp.

const int AF_FORCE_TOTAL_BITS = 16

Definition at line 7908 of file Physics_AF.cpp.

const int AF_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( AF_VELOCITY_MAX ) ) + 1

Definition at line 7905 of file Physics_AF.cpp.

const int AF_VELOCITY_MANTISSA_BITS = AF_VELOCITY_TOTAL_BITS - 1 - AF_VELOCITY_EXPONENT_BITS

Definition at line 7906 of file Physics_AF.cpp.

const float AF_VELOCITY_MAX = 16000

Definition at line 7903 of file Physics_AF.cpp.

const int AF_VELOCITY_TOTAL_BITS = 16

Definition at line 7904 of file Physics_AF.cpp.

const float CENTER_OF_MASS_EPSILON = 1e-4f

Definition at line 43 of file Physics_AF.cpp.

const float CONTACT_LCP_EPSILON = 1e-6f

Definition at line 42 of file Physics_AF.cpp.

END_CLASS const float ERROR_REDUCTION = 0.5f

Definition at line 37 of file Physics_AF.cpp.

const float ERROR_REDUCTION_MAX = 256.0f

Definition at line 38 of file Physics_AF.cpp.

const float IMPULSE_THRESHOLD = 500.0f

Definition at line 49 of file Physics_AF.cpp.

const float LCP_EPSILON = 1e-7f

Definition at line 40 of file Physics_AF.cpp.

const float LIMIT_ERROR_REDUCTION = 0.3f

Definition at line 39 of file Physics_AF.cpp.

const float LIMIT_LCP_EPSILON = 1e-4f

Definition at line 41 of file Physics_AF.cpp.

const float MAX_MOVE_TIME = -1.0f

Definition at line 48 of file Physics_AF.cpp.

const float MIN_MOVE_TIME = -1.0f

Definition at line 47 of file Physics_AF.cpp.

const float NO_MOVE_ROTATION_TOLERANCE = 10.0f

Definition at line 46 of file Physics_AF.cpp.

const float NO_MOVE_TIME = 1.0f

Definition at line 44 of file Physics_AF.cpp.

const float NO_MOVE_TRANSLATION_TOLERANCE = 10.0f

Definition at line 45 of file Physics_AF.cpp.

const float SUSPEND_ANGULAR_ACCELERATION = 30.0f

Definition at line 53 of file Physics_AF.cpp.

const float SUSPEND_ANGULAR_VELOCITY = 15.0f

Definition at line 51 of file Physics_AF.cpp.

const float SUSPEND_LINEAR_ACCELERATION = 20.0f

Definition at line 52 of file Physics_AF.cpp.

const float SUSPEND_LINEAR_VELOCITY = 10.0f

Definition at line 50 of file Physics_AF.cpp.

const idVec6 vec6_lcp_epsilon
Initial value:

Definition at line 54 of file Physics_AF.cpp.