1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-06 00:10:15 +02:00

TSink, TDemo ready.

This commit is contained in:
oz 2021-01-18 18:30:19 +03:00
parent 7e8f52c156
commit f22077d8c8
11 changed files with 453 additions and 24 deletions

View file

@ -45,6 +45,32 @@ struct __declspec(align(4)) line_type
vector_type RayIntersect;
};
struct vector_type2
{
int X;
int Y;
};
struct wall_point_type
{
float X0;
float Y0;
float X1;
float Y1;
};
struct __declspec(align(4)) ramp_plane_type
{
float Unknown12;
vector_type2 V0;
vector_type2 V1;
vector_type2 V2;
vector_type2 V3;
float GravityAngle1;
float GravityAngle2;
vector_type2 V5_Zero;
};
class maths
{
@ -69,4 +95,6 @@ public:
static void RotatePt(vector_type* point, float sin, float cos, vector_type* origin);
static float distance_to_flipper(ray_type* ray1, ray_type* ray2);
static void RotateVector(vector_type* vec, float angle);
static void find_closest_edge(ramp_plane_type* plane, int planeCount, wall_point_type* wall, vector_type** lineEnd,
vector_type** lineStart);
};