Files
Cesarus85--ringfall-mjolnir-vr/source/physics/collision_debug.c
T

112 lines
3.0 KiB
C

/*
COLLISION_DEBUG.C
symbols in this file:
00139530 1060:
_collision_debug_render (0000)
0028B2A8 0060:
_rdata_0028b2a8 (0000)
0028B308 000a:
??_C@_09PCOGIILP@count?$DM?$DN14?$AA@ (0000)
0028B314 0031:
??_C@_0DB@EBGLDBDO@plane?5?$CD?$CFd?$CFs?$HMnsurface?5?$CD?$CFd?$CFs?$CFs?$CFs?$CFs@ (0000)
0028B348 0004:
__real@42652ee0 (0000)
0028B34C 0009:
??_C@_08JNJLEJIF@?5negated?$AA@ (0000)
0028B358 000b:
??_C@_0L@DMHIANBO@?5two?9sided?$AA@ (0000)
0028B364 000b:
??_C@_0L@OFKNNBE@?5invisible?$AA@ (0000)
0028B370 000b:
??_C@_0L@JOKAPIDA@?5climbable?$AA@ (0000)
0028B37C 000b:
??_C@_0L@KCGACEBO@?5breakable?$AA@ (0000)
0028B388 000c:
??_C@_0M@CIBLPKPA@phantom?5bsp?$AA@ (0000)
0028B394 0004:
__real@3e162051 (0000)
0028B398 0004:
__real@bd962051 (0000)
0028B3A0 0008:
__real@401921fb60000000 (0000)
0028B3A8 0029:
??_C@_0CJ@OKHLJDEM@c?3?2halo?2SOURCE?2physics?2collision@ (0000)
0030CD44 0010:
_collision_debug_flag_front_facing_surfaces (0000)
_collision_debug_flag_ignore_invisible_surfaces (0001)
_collision_debug_flag_structure (0002)
_collision_debug_flag_media (0003)
_collision_debug_flag_objects (0004)
_collision_debug_length (0008)
_collision_debug_ignore_object_index (000c)
00456EC0 7122:
_bss_00456ec0 (0000)
_collision_debug_width (7118)
_collision_debug_height (711c)
_collision_debug_phantom_bsp (7120)
_collision_debug_phantom_bsp_found (7121)
*/
/* ---------- headers */
#include "cseries.h"
#include "math/real_math.h"
/* ---------- constants */
enum
{
COLLISION_DEBUG_SPRAY_COLUMNS = 40,
COLLISION_DEBUG_SPRAY_ROWS = 30,
COLLISION_DEBUG_SPRAY_COUNT = COLLISION_DEBUG_SPRAY_COLUMNS * COLLISION_DEBUG_SPRAY_ROWS,
};
/* ---------- macros */
/* ---------- structures */
struct collision_debug_spray_cache
{
real_vector3d normals[COLLISION_DEBUG_SPRAY_COUNT];
real_point3d points[COLLISION_DEBUG_SPRAY_COUNT];
unsigned long hit_flags[BIT_VECTOR_SIZE_IN_LONGS(COLLISION_DEBUG_SPRAY_COUNT)];
};
typedef char collision_debug_spray_cache_size_assert[
sizeof(struct collision_debug_spray_cache) == 0x7118 ? 1 : -1];
/* ---------- prototypes */
/* ---------- globals */
const real_point3d collision_debug_cube_vertices[NUMBER_OF_VERTICES_PER_CUBE] =
{
{ -1.0f, -1.0f, -1.0f },
{ -1.0f, -1.0f, 1.0f },
{ -1.0f, 1.0f, -1.0f },
{ -1.0f, 1.0f, 1.0f },
{ 1.0f, -1.0f, -1.0f },
{ 1.0f, -1.0f, 1.0f },
{ 1.0f, 1.0f, -1.0f },
{ 1.0f, 1.0f, 1.0f },
};
boolean collision_debug_flag_front_facing_surfaces = TRUE;
boolean collision_debug_flag_ignore_invisible_surfaces = TRUE;
boolean collision_debug_flag_structure = TRUE;
boolean collision_debug_flag_media = TRUE;
boolean collision_debug_flag_objects = TRUE;
real collision_debug_length = 100.0f;
long collision_debug_ignore_object_index = NONE;
struct collision_debug_spray_cache collision_debug_spray_globals = { 0 };
real collision_debug_width = 0.0f;
real collision_debug_height = 0.0f;
boolean collision_debug_phantom_bsp = FALSE;
boolean collision_debug_phantom_bsp_found = FALSE;
/* ---------- public code */
/* ---------- private code */