Breakout
Contact.h
Go to the documentation of this file.
1 #ifndef CONTACT
2 #define CONTACT
3 
8 enum class CollisionType
9 {
10  None,
11  Top,
12  Middle,
13  Bottom,
14  Left,
15  Right
16 };
20 struct Contact
21 {
23  float penetration;
24 };
25 
26 
27 #endif
CollisionType
Represents the type of Collision between Paddle, Ball and Walls.
Definition: Contact.h:9
Represents the contact when the ball hits paddle or wall.
Definition: Contact.h:21
CollisionType type
Definition: Contact.h:22
float penetration
Definition: Contact.h:23