2021-06-23 19:25:12 +02:00
|
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <libgte.h>
|
2021-07-12 13:00:19 +02:00
|
|
|
#include <libetc.h>
|
2021-06-23 19:25:12 +02:00
|
|
|
#include <libgpu.h>
|
2021-11-28 19:59:05 +01:00
|
|
|
#include <defines.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <macros.h>
|
|
|
|
#include <custom_types.h>
|
|
|
|
#include "../thirdparty/nugget/common/syscalls/syscalls.h"
|
|
|
|
#define printf ramsyscall_printf
|
2021-06-23 19:25:12 +02:00
|
|
|
|
|
|
|
short checkLineW( VECTOR * pointA, VECTOR * pointB, MESH * mesh );
|
|
|
|
short checkLineS( VECTOR * pointA, VECTOR * pointB, MESH * mesh );
|
|
|
|
VECTOR getIntCollision(BODY one, BODY two);
|
|
|
|
VECTOR getExtCollision(BODY one, BODY two);
|
2021-11-28 19:59:05 +01:00
|
|
|
VECTOR checkBodyCol(BODY * one, BODY * two);
|
2021-07-01 15:09:18 +02:00
|
|
|
void applyAngMom(LEVEL curLvl );
|
2021-06-23 19:25:12 +02:00
|
|
|
void ResolveCollision( BODY * one, BODY * two );
|
|
|
|
VECTOR angularMom(BODY body);
|
2021-07-14 15:21:29 +02:00
|
|
|
void applyAcceleration(BODY * actor, int dt);
|
|
|
|
u_int jump(BODY * actor, int dt);
|
2021-09-01 18:37:00 +02:00
|
|
|
void respawnMesh(LEVEL * level, MESH * mesh, VECTOR * rot, VECTOR * pos, NODE * node);
|