aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-07-23 14:19:28 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-07-23 14:19:28 +0100
commitdaa9dc84d7fb6e7c8f84b1ee3adfaacaad7de72f (patch)
tree60909899b320f03193896b277006fb01a506629f /test
parent85fe87aa7a52733dc80f61617bf65f22b2d98ccb (diff)
downloadYAGE-daa9dc84d7fb6e7c8f84b1ee3adfaacaad7de72f.tar.gz
YAGE-daa9dc84d7fb6e7c8f84b1ee3adfaacaad7de72f.zip
Fixing gravity
Diffstat (limited to 'test')
-rw-r--r--test/rigidbodytest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rigidbodytest.cpp b/test/rigidbodytest.cpp
index c5683697..11efd20d 100644
--- a/test/rigidbodytest.cpp
+++ b/test/rigidbodytest.cpp
@@ -13,6 +13,8 @@ int main(int, char**)
double ideal_position=0.5*-9.81*3*3;
+ std::cout<<"Ideal Position: "<<ideal_position<<"\n";
+
if(body.yPosition()<ideal_position*0.95 && body.yPosition()>ideal_position*1.05)
return 0;
return 1;