Files
Cesarus85--mjolnir-vr/source/physics/point_physics.c
T

88 lines
1.9 KiB
C

/*
POINT_PHYSICS.C
symbols in this file:
001440B0 0030:
_point_physics_initialize_for_new_map (0000)
001440E0 0010:
_point_physics_dispose_from_old_map (0000)
001440F0 0020:
_point_physics_definition_get_mass (0000)
00144110 0160:
_point_physics_definition_interpolate (0000)
00144270 0030:
_code_00144270 (0000)
001442A0 0570:
_point_physics_update (0000)
0028BE84 0004:
__real@47e7aaac (0000)
0028BE88 0011:
??_C@_0BB@FCDBFPJL@t?$DO?$DN0?4f?5?$CG?$CG?5t?$DM?$DN1?4f?$AA@ (0000)
0028BE9C 0009:
??_C@_08BIGLLGLE@physics2?$AA@ (0000)
0028BEA8 0009:
??_C@_08DDEGOFHH@physics1?$AA@ (0000)
0028BEB4 0027:
??_C@_0CH@PCKPBNOM@c?3?2halo?2SOURCE?2physics?2point_phy@ (0000)
0028BEDC 0004:
__real@3ba3d70a (0000)
0028BEE0 000c:
??_C@_0M@FKGDOMDE@radius?$DO?$DN0?4f?$AA@ (0000)
0028BEF0 0041:
??_C@_0EB@EKLOAHE@?$CBtranslational_force?5?$HM?$HM?5valid_re@ (0000)
0028BF34 0017:
??_C@_0BH@HLBAAAIL@translational_velocity?$AA@ (0000)
0030CEE0 000c:
_global_point_physics_reference (0000)
0045E01C 0008:
_bss_0045e01c (0000)
*/
/* ---------- headers */
#include "cseries/cseries.h"
#include "physics/point_physics.h"
/* ---------- constants */
#define POINT_PHYSICS_DENSITY_SCALE 118613.344f
/* ---------- macros */
/* ---------- structures */
/* ---------- prototypes */
/* ---------- globals */
extern real global_air_density;
extern real global_water_density;
struct point_physics_globals point_physics_globals;
/* ---------- public code */
void point_physics_initialize_for_new_map(
void)
{
point_physics_globals.air_density= global_air_density * POINT_PHYSICS_DENSITY_SCALE;
point_physics_globals.water_density= global_water_density * POINT_PHYSICS_DENSITY_SCALE;
return;
}
void point_physics_dispose_from_old_map(
void)
{
return;
}
real point_physics_definition_get_mass(
struct point_physics_definition const *definition,
real scale)
{
return scale * definition->density * scale * scale;
}
/* ---------- private code */