Breakout
include
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
{
22
CollisionType
type
;
23
float
penetration
;
24
};
25
26
27
#endif
CollisionType
CollisionType
Represents the type of Collision between Paddle, Ball and Walls.
Definition:
Contact.h:9
CollisionType::Bottom
@ Bottom
CollisionType::None
@ None
CollisionType::Right
@ Right
CollisionType::Left
@ Left
CollisionType::Top
@ Top
CollisionType::Middle
@ Middle
Contact
Represents the contact when the ball hits paddle or wall.
Definition:
Contact.h:21
Contact::type
CollisionType type
Definition:
Contact.h:22
Contact::penetration
float penetration
Definition:
Contact.h:23
Generated by
1.9.0