[SOLVED] Physics Gravity Prediction

Hey!

Problem that got solved:
I’m currently working on a game, and I need to be able to predict where a ball will go when a force is applied to it.

Currently, I have it spawn in a bunch of smaller balls and fling those, creating something like this:


This isn’t always accurate though. Any ideas on how it could be improved?

Here are my events by the way:

Hi snowy …Have you looked at this thread?

What’s this bit? ‘30+(35-30)’

1 Like

The 30+(35-30) bit is too make it have more power when shooting sideways compared to shooting down.

I just looked at the there thread now, but it looks like the solution is extremely laggy :confused:

There’s a few solutions in there…the maths is tricky but there’s a few links there in the thread to chew on.
I’ve not attempted it …id probably just fire an invisible test object

1 Like

You can use the same technique you are using, but use a small circle and do a dotting giving more time or distance between one and the other. This will be visually better.

1 Like

Hey everyone!

Turns out it was a mistake on my end, the prediction’s gravity was less than the actual ball’s gravity :laughing:

Now I’m stuck with another problem. If I want to show the whole path the ball will take, I need the prediction balls to collide with the pegs, but not with each other. Any idea how that is possible?

Nevermind! I figured that out myself as well! :smile:

2 Likes