altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
rigidbody.cpp File Reference
#include "rigidbody.h"
Include dependency graph for rigidbody.cpp:

Classes

struct  Derivative
 

Macros

#define ACCEL   (0.25f)
 
#define AIR_ACCEL   (0.5f)
 
#define MAX_SPEED   3.0f
 
#define MAX_AIR_SPEED   5.5f
 
#define DECELERATION_RATE   0.95f
 
#define SND_GRENADE_IMPACT   244
 

Functions

void PM_Accelerate (const vec3 &wishdir, float wishspeed, float accel, Entity *ent)
 
vec3 rk4_acceleration (const vec3 &pos, const vec3 &vel, float t)
 
Derivative rk4_evaluate (const vec3 &pos, const vec3 &vel, float t)
 
Derivative rk4_evaluate (const vec3 &pos, const vec3 &vel, float t, float dt, const Derivative &d)
 
void rk4_integrate (vec3 &pos, vec3 &vel, float t, float dt)
 

Macro Definition Documentation

#define ACCEL   (0.25f)
#define AIR_ACCEL   (0.5f)
#define DECELERATION_RATE   0.95f
#define MAX_AIR_SPEED   5.5f
#define MAX_SPEED   3.0f
#define SND_GRENADE_IMPACT   244

Function Documentation

void PM_Accelerate ( const vec3 wishdir,
float  wishspeed,
float  accel,
Entity ent 
)
vec3 rk4_acceleration ( const vec3 pos,
const vec3 vel,
float  t 
)

Here is the caller graph for this function:

Derivative rk4_evaluate ( const vec3 pos,
const vec3 vel,
float  t 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Derivative rk4_evaluate ( const vec3 pos,
const vec3 vel,
float  t,
float  dt,
const Derivative d 
)

Here is the call graph for this function:

void rk4_integrate ( vec3 pos,
vec3 vel,
float  t,
float  dt 
)

Here is the call graph for this function: