mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00

- No more enums.h, constants.h, macro.h, etc... - moved all structure in types.h to there respective file.
25 lines
655 B
C
25 lines
655 B
C
#pragma once
|
|
#include "items.h"
|
|
|
|
#define SPHERES_SPACE_LOCAL 0
|
|
#define SPHERES_SPACE_WORLD 1
|
|
#define SPHERES_SPACE_BONE_ORIGIN 2
|
|
#define MAX_SPHERES 34
|
|
|
|
typedef struct SPHERE
|
|
{
|
|
int x;
|
|
int y;
|
|
int z;
|
|
int r;
|
|
};
|
|
|
|
extern int NumLaraSpheres;
|
|
extern bool GotLaraSpheres;
|
|
extern SPHERE LaraSpheres[MAX_SPHERES];
|
|
extern SPHERE CreatureSpheres[MAX_SPHERES];
|
|
|
|
int TestCollision(ITEM_INFO* item, ITEM_INFO* l);
|
|
int GetSpheres(ITEM_INFO* item, SPHERE* ptr, int worldSpace, Matrix local);
|
|
void GetJointAbsPosition(ITEM_INFO* item, PHD_VECTOR* vec, int joint);
|
|
void GetMatrixFromTrAngle(Matrix* matrix, short* frameptr, int index);
|