Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to predict location of projectile landing?

I have asked this question before, no one replied. I also think I did not give enough detail.

I am trying to find out the location of a ball traveling horizontally with a specified gravity and power. Would anyone know an equation for this problem?

1 answer

✓ Accepted answer
  1. Find travel time with the gravity of the object
  2. Time * Velocity Vector (x,0,z)
  3. Tada

6 comments

0

What if its launched at different angles?

0

What do you mean? The velocity vector is the direction it's traveling in.

0

Wouldn't the time have less seconds when launching at a short angle?

0

It's going to be hard to do this if you don't understand kinematics. The only thing affecting the travel time is the vertical velocity and gravity. You can find vertical initial velocity by finding the vertical component of the force ("power").

0

Alright, so let me just get this cleared up. I will find the velocity of the object, which I can do by using the velocity value of the ball. Then, I find the time it travels with the gravity. Finally, multiply those two things together and that's my answer?

0

Yes, that's the idea. Roblox physics isn't perfect so it will probably be off

This discussion is preserved as it was. New answers, comments, and votes are closed.