Help with projectiles

Projectile goes from launcher to target, in my case a rocket from an attack drone. I know how to raycast and all that subject, this post is not far that, this post is for the calculations

my rocket projectile has a mass, velocity and shape. The rocket will be launched straight from the launcher @ the same direction the launcher is faced at. But of course I need to count in gravity, I know that it’s Y velocity would increase by 9.81 studs per second, but instead of calculating the gravity effect with RunService, wouldn’t it be faster to just pre-calculate where it would go then modify the route to that place, or am I wrong?

Secondly, not really important but to make it more accurate, I’d need to count in the air resistance. I don’t know what factors to put in air resistance which is also a problem, after all this is a rocket projectile, the kind most roblox RPG tools fire, since they’re far larger than bullets, air resistance makes a far larger difference.

If anyone can correct me and/or provide calculations please do so!

2 Likes

This is a really good video by @5uphi about projectile physics:

1 Like

my projectiles don’t ascend into the sky before returning to ground, they’re fired from drones and almost always below the y plane

You can modify the length of the shot in the video I sent to achieve a more straight trajectory.