Effect methods changed from pure virtual to defaulting to a 0,0 vector
[physics.git] / src / Entities / Ball.cpp
index 7b75839..23180f0 100644 (file)
@@ -17,5 +17,10 @@ Ball::~Ball()
 
 void Ball::draw() const
 {
-    glDrawCircle(radius, &position, color);
+    glDrawCircle(radius, position, color);
+}
+
+float Ball::getRadius() const
+{
+    return radius;
 }