mirror of
https://github.com/iAmInActions/SpaceCadetPinballPPC.git
synced 2024-11-10 14:10:08 +00:00
2d0da712e3
Renamed vector2.
37 lines
847 B
C++
37 lines
847 B
C++
#pragma once
|
|
#include "maths.h"
|
|
#include "TPinballComponent.h"
|
|
|
|
class TCollisionComponent;
|
|
class TEdgeSegment;
|
|
|
|
class TBall : public TPinballComponent
|
|
{
|
|
public :
|
|
TBall(TPinballTable* table);
|
|
void Repaint();
|
|
void not_again(TEdgeSegment* edge);
|
|
bool already_hit(TEdgeSegment* edge);
|
|
int Message(int code, float value) override;
|
|
|
|
static void throw_ball(TBall* ball, vector3* acceleration, float angleMult, float speedMult1,
|
|
float speedMult2);
|
|
|
|
vector3 Position{};
|
|
vector3 Acceleration{};
|
|
float Speed;
|
|
float RayMaxDistance;
|
|
float TimeDelta;
|
|
float TimeNow;
|
|
vector2 InvAcceleration{};
|
|
vector2 RampFieldForce{};
|
|
TCollisionComponent* CollisionComp;
|
|
int FieldFlag;
|
|
TEdgeSegment* Collisions[5]{};
|
|
int EdgeCollisionCount;
|
|
vector3 CollisionOffset{};
|
|
int CollisionFlag;
|
|
float Offset;
|
|
float VisualZArray[50]{};
|
|
};
|