diff options
Diffstat (limited to 'test/rigid_body_test.cpp')
-rw-r--r-- | test/rigid_body_test.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/rigid_body_test.cpp b/test/rigid_body_test.cpp deleted file mode 100644 index c5683697..00000000 --- a/test/rigid_body_test.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "Physics/particlebody.hpp" - -#include <iostream> - -int main(int, char**) -{ - yage::ParticleBody body; - for(int i=0; i<60*3; ++i) - { - body.update(); - std::cout<<"position: "<<body.xPosition()<<", "<<body.yPosition()<<"\n"; - } - - double ideal_position=0.5*-9.81*3*3; - - if(body.yPosition()<ideal_position*0.95 && body.yPosition()>ideal_position*1.05) - return 0; - return 1; -} |