TombEngine/TR5Main/Game/sphere.h

26 lines
655 B
C
Raw Normal View History

2018-08-19 09:46:58 +02:00
#pragma once
#include "items.h"
2018-08-19 09:46:58 +02:00
2020-04-27 06:33:42 +02:00
#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;
2020-01-01 11:45:09 +01:00
extern bool GotLaraSpheres;
2020-04-27 06:33:42 +02:00
extern SPHERE LaraSpheres[MAX_SPHERES];
extern SPHERE CreatureSpheres[MAX_SPHERES];
2020-01-01 11:45:09 +01:00
int TestCollision(ITEM_INFO* item, ITEM_INFO* l);
2020-04-27 06:33:42 +02:00
int GetSpheres(ITEM_INFO* item, SPHERE* ptr, int worldSpace, Matrix local);
void GetJointAbsPosition(ITEM_INFO* item, PHD_VECTOR* vec, int joint);
2020-04-20 07:14:54 +02:00
void GetMatrixFromTrAngle(Matrix* matrix, short* frameptr, int index);