Time updating #33
yonimal676
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
old:
ball.time += 0.016f;
newer old:
ball.time += 0.032f;
At first, the logic says that the time should be updated according to real time,
however I noticed that when I make the time move twice as fast (just for the ball) the physics-multipications make
the ball move WAY more smoothly.
This is due to the screen being only 14 meters in "real terms", the gravity looked too weak and the speed was too slow
doubling the time make it all look very authentic.
*** RETEST:
we'll make an exponential variable to make longer shots be a little quicker:
float exponential= 1.003f;
for (int i = 0; i < percentOfPull * 10; i++) { exponential= (float) Math.pow(exponential, 1.5); }
This seems to look exactly as I want it.
Though unneeded:
This is good for now.
Beta Was this translation helpful? Give feedback.
All reactions