Go to the source code of this file.
|
void | physics_init (physics_info *pi) |
|
void | physics_read_flying_controls (matrix *orient, physics_info *pi, control_info *ci, float sim_time, vec3d *wash_rot=NULL) |
|
void | physics_sim (vec3d *position, matrix *orient, physics_info *pi, float sim_time) |
|
void | physics_sim_editor (vec3d *position, matrix *orient, physics_info *pi, float sim_time) |
|
void | physics_sim_vel (vec3d *position, physics_info *pi, float sim_time, matrix *orient) |
|
void | physics_sim_rot (matrix *orient, physics_info *pi, float sim_time) |
|
void | physics_apply_whack (vec3d *force, vec3d *pos, physics_info *pi, matrix *orient, float mass) |
|
void | physics_apply_shock (vec3d *direction_vec, float pressure, physics_info *pi, matrix *orient, vec3d *min, vec3d *max, float radius) |
|
void | physics_collide_whack (vec3d *impulse, vec3d *delta_rotvel, physics_info *pi, matrix *orient, bool is_landing) |
|
int | check_rotvel_limit (physics_info *pi) |
|
void | physics_predict_pos (physics_info *pi, float delta_time, vec3d *predicted_pos) |
|
void | physics_predict_vel (physics_info *pi, float delta_time, vec3d *predicted_vel) |
|
void | physics_predict_pos_and_vel (physics_info *pi, float delta_time, vec3d *predicted_vel, vec3d *predicted_pos) |
|
void | physics_set_viewer (physics_info *p, int dir) |
|
void | apply_physics (float damping, float desired_vel, float initial_vel, float t, float *new_vel, float *delta_pos) |
|
#define PF_ACCELERATES (1 << 1) |
#define PF_AFTERBURNER_ON (1 << 3) |
#define PF_AFTERBURNER_WAIT (1 << 8) |
#define PF_BOOSTER_ON (1 << 14) |
#define PF_CONST_VEL (1 << 9) |
#define PF_DEAD_DAMP (1 << 7) |
#define PF_FORCE_GLIDE (1 << 16) |
#define PF_GLIDING (1 << 15) |
#define PF_IN_SHOCKWAVE (1 << 6) |
#define PF_REDUCED_DAMP (1 << 5) |
#define PF_SLIDE_ENABLED (1 << 4) |
#define PF_SPECIAL_WARP_IN (1 << 11) |
#define PF_SPECIAL_WARP_OUT (1 << 13) |
#define PF_USE_VEL (1 << 2) |
#define PF_WARP_IN (1 << 10) |
#define PF_WARP_OUT (1 << 12) |
#define PHYSICS_VIEWER_FRONT 0 |
#define PHYSICS_VIEWER_LEFT 1 |
#define PHYSICS_VIEWER_REAR 3 |
#define PHYSICS_VIEWER_RIGHT 2 |
#define PHYSICS_VIEWER_UP 4 |
float Physics_viewer_bank |