2018-08-19 09:46:58 +02:00
|
|
|
#pragma once
|
2020-05-30 15:55:23 +02:00
|
|
|
#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
|
|
|
|
|
2020-05-30 15:55:23 +02:00
|
|
|
typedef struct SPHERE
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int z;
|
|
|
|
int r;
|
|
|
|
};
|
|
|
|
|
2020-04-26 10:55:33 +02:00
|
|
|
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);
|
2020-03-25 07:06:04 +01:00
|
|
|
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);
|