I’m going to be completely honest, I am not too good at math or physics. I am making a bullet module and I want to include realistic physics. I want to pre-calculate the arc in which the bullet will trace, so after the arc has been calculated, the bullet can be fired. How would I do this? Thanks!
The arc is a quadratic equation with 3 input vectors g gravity, v velocity, and an initial position. t is time from starting point.
local function projectileMotionEquation(g, v, initialPosition, t)
--See Ego Mooses tutorial on integrating projectile motion equation
return 0.5 * g * t ^ 2 + v * t + initialPosition
end
1 Like