projects
/
physics.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ad24d8ed0db8c24ccd5840a5f189c954999a995f
[physics.git]
/
src
/
Entities
/
Ball.cpp
1
#include "Ball.h"
2
#include "../Vector2.h"
3
#include "../graphics/graphics.h"
4
5
/// ***** Public Class Methods *****
6
Ball::Ball(Vector2 pos, float radius)
7
: PhysicsEntity(pos), radius(radius)
8
{
9
10
}
11
Ball::~Ball()
12
{
13
14
}
15
16
void Ball::draw() const
17
{
18
// TODO
19
20
glDrawCircle(radius, &position);
21
}