Files
Cesarus85--mjolnir-vr/source/physics/physics.h
T

49 lines
895 B
C

/*
PHYSICS.H
header included in hcex build.
*/
#ifndef __PHYSICS_H
#define __PHYSICS_H
#pragma once
/* ---------- headers */
#include "math/real_math.h"
/* ---------- constants */
/* ---------- macros */
/* ---------- structures */
struct physics_instance
{
long object_index;
const struct physics_definition *physics;
real_matrix4x3 world_matrix;
};
/* ---------- prototypes/PHYSICS.C */
boolean physics_instance_new(struct physics_instance *instance, long object_index);
boolean physics_test_point(
struct physics_instance const *instance,
real_point3d const *point);
void render_debug_physics(struct physics_instance *instance);
/* ---------- globals */
extern real global_gravity;
extern real global_water_density;
extern real global_air_density;
extern real global_physics_collision_depth;
extern long depths_of_hell;
/* ---------- public code */
#endif // __PHYSICS_H