Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

physics #25

Open
yonimal676 opened this issue Oct 27, 2022 · 0 comments
Open

physics #25

yonimal676 opened this issue Oct 27, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@yonimal676
Copy link
Owner

yonimal676 commented Oct 27, 2022

Originally posted by yonimal676 October 11, 2022
image

great visualizer:
https://ophysics.com/k8.html

Note: it doesn't matter what the weight of the object is, it will fall the same

image
image

HOLY SHIT IT WORKS

I figured how to run the time for the ball in GameView -> sleep() and then the formulas worked.

This is a revisit: even though it worked, it looked weird:

image

This is how it looks now:
image

This was done with the help of chatGPT, i'm speechless.

Now that the physics calculations are refined, I can continue in Collision Physics #26 -> Changing Direction #34

FEATURE:

public void physicsUpdateNoCol(float time)

most of the times, the time parameter is going to be ball.time, how ever I will add this parameter in case i want to calculate the next X/Y.

@yonimal676 yonimal676 added the documentation Improvements or additions to documentation label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant