How would I approach making bullet drop guns?

How would I approach making a game with guns that have realistic bullet drop while also being efficient and not laggy? I’ve seen some posts about adding gravity, but then how would I get the realistic end position without using RayCast since RayCast only casts straight lines? The .Touched function has a delay and is pretty inaccurate.
Any suggestions?

I recommend using FastCast, which is an open source projectile module. It uses raycasting, but instead of a single raycast instantly it simulates bullet time by using multiple short raycasts, and it also has a built in Gravity property, as well as some other useful things like bounce, piercing, etc.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.