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

Go to the source code of this file.

Macros

#define MAX_INERTIA_SCALE   10.0f
 

Functions

void RigidBodyDerivatives (const float t, const void *clientData, const float *state, float *derivatives)
 
void idPhysics_RigidBody_SavePState (idSaveGame *savefile, const rigidBodyPState_t &state)
 
void idPhysics_RigidBody_RestorePState (idRestoreGame *savefile, rigidBodyPState_t &state)
 

Variables

END_CLASS const float STOP_SPEED = 10.0f
 
const float RB_VELOCITY_MAX = 16000
 
const int RB_VELOCITY_TOTAL_BITS = 16
 
const int RB_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( RB_VELOCITY_MAX ) ) + 1
 
const int RB_VELOCITY_MANTISSA_BITS = RB_VELOCITY_TOTAL_BITS - 1 - RB_VELOCITY_EXPONENT_BITS
 
const float RB_MOMENTUM_MAX = 1e20f
 
const int RB_MOMENTUM_TOTAL_BITS = 16
 
const int RB_MOMENTUM_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( RB_MOMENTUM_MAX ) ) + 1
 
const int RB_MOMENTUM_MANTISSA_BITS = RB_MOMENTUM_TOTAL_BITS - 1 - RB_MOMENTUM_EXPONENT_BITS
 
const float RB_FORCE_MAX = 1e20f
 
const int RB_FORCE_TOTAL_BITS = 16
 
const int RB_FORCE_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( RB_FORCE_MAX ) ) + 1
 
const int RB_FORCE_MANTISSA_BITS = RB_FORCE_TOTAL_BITS - 1 - RB_FORCE_EXPONENT_BITS
 

Macro Definition Documentation

#define MAX_INERTIA_SCALE   10.0f

Definition at line 597 of file Physics_RigidBody.cpp.

Function Documentation

void idPhysics_RigidBody_RestorePState ( idRestoreGame savefile,
rigidBodyPState_t state 
)

Definition at line 515 of file Physics_RigidBody.cpp.

void idPhysics_RigidBody_SavePState ( idSaveGame savefile,
const rigidBodyPState_t state 
)

Definition at line 495 of file Physics_RigidBody.cpp.

void RigidBodyDerivatives ( const float  t,
const void clientData,
const float state,
float derivatives 
)

Definition at line 54 of file Physics_RigidBody.cpp.

Variable Documentation

Definition at line 1451 of file Physics_RigidBody.cpp.

const int RB_FORCE_MANTISSA_BITS = RB_FORCE_TOTAL_BITS - 1 - RB_FORCE_EXPONENT_BITS

Definition at line 1452 of file Physics_RigidBody.cpp.

const float RB_FORCE_MAX = 1e20f

Definition at line 1449 of file Physics_RigidBody.cpp.

const int RB_FORCE_TOTAL_BITS = 16

Definition at line 1450 of file Physics_RigidBody.cpp.

const int RB_MOMENTUM_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( RB_MOMENTUM_MAX ) ) + 1

Definition at line 1447 of file Physics_RigidBody.cpp.

const int RB_MOMENTUM_MANTISSA_BITS = RB_MOMENTUM_TOTAL_BITS - 1 - RB_MOMENTUM_EXPONENT_BITS

Definition at line 1448 of file Physics_RigidBody.cpp.

const float RB_MOMENTUM_MAX = 1e20f

Definition at line 1445 of file Physics_RigidBody.cpp.

const int RB_MOMENTUM_TOTAL_BITS = 16

Definition at line 1446 of file Physics_RigidBody.cpp.

const int RB_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( RB_VELOCITY_MAX ) ) + 1

Definition at line 1443 of file Physics_RigidBody.cpp.

const int RB_VELOCITY_MANTISSA_BITS = RB_VELOCITY_TOTAL_BITS - 1 - RB_VELOCITY_EXPONENT_BITS

Definition at line 1444 of file Physics_RigidBody.cpp.

const float RB_VELOCITY_MAX = 16000

Definition at line 1441 of file Physics_RigidBody.cpp.

const int RB_VELOCITY_TOTAL_BITS = 16

Definition at line 1442 of file Physics_RigidBody.cpp.

END_CLASS const float STOP_SPEED = 10.0f

Definition at line 37 of file Physics_RigidBody.cpp.