2018-02-12 01:12:31 +01:00
|
|
|
/**
|
|
|
|
* Test file for the movement of a ball.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#include "Ball.hpp"
|
|
|
|
#include <cstdio>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
int i;
|
|
|
|
Point center(0,0,10);
|
|
|
|
Ball ball(center, 0, 1, 1);
|
2018-02-12 10:50:45 +01:00
|
|
|
for(i=0; i< 10000; i++) {
|
|
|
|
ball.update_pos(0.001);
|
2018-02-12 01:12:31 +01:00
|
|
|
cout << ball << "\n";
|
|
|
|
}
|
|
|
|
}
|