Drafts #45
yonimal676
started this conversation in
General
Drafts
#45
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
// ball.vy = (float) Math.sqrt(ball.v0y * ball.v0y + 2ball.GRAVITY(ball.y-ball.initialY));
// ball.vy = (float) (ball.v0y + (ball.GRAVITY * time) * Math.sin(ball.angle)); // Always works for pre-hit
instead of ball.vy = ball.v0y - (ball.GRAVITY * time);
or:
ball.GRAVITY = (quarterOfLaunch == 1 || quarterOfLaunch == 2) ? -1 * abs(ball.GRAVITY) : abs(ball.GRAVITY);
Beta Was this translation helpful? Give feedback.
All reactions