test for a ball
This commit is contained in:
parent
006d2de34a
commit
1dff2ab839
1 changed files with 19 additions and 0 deletions
19
main_ball.cpp
Normal file
19
main_ball.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* 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);
|
||||
for(i=0; i< 100; i++) {
|
||||
ball.update_pos(0.2);
|
||||
cout << ball << "\n";
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue