I’d like how know how to calculate the time it would take for an object to travel x studs while falling. I’m not too sure how roblox’s physics system works, and I couldn’t find any articles on falling speed.
I’ve created a boss fight system, and I need to know how long it will take for an object the boss spawns to hit the player.
Hm. This doesn’t seem to be working. Could I have some help?
local BeforeFireballTime = math.sqrt(workspace.Gravity / 35)
-- I set a tween's time to the variable above *2
-- and I want a fireball to reach the ground at the same time it finishes
wait(BeforeFireballTime)
local fb = rs:WaitForChild("Fireball"):Clone()
fb.CFrame = obj.CFrame + Vector3.New(0,35,0)
Seems like you’re creating the fireball after waiting the time it takes for it to fall onto the ground. If this isn’t what you wanted, move the code that creates the fireball above the wait(BeforeFireballTime), otherwise I need more info as to what you’re trying to do
The fireball is falling about half a second after the tween completes, and I’m not sure why. I’ll go back into the code real quick and see if there’s any other unnecessary waits.
I literally used my formula for my game. I can assure you that my formula converted onto Roblox works perfectly. You are correct in using that physics formula for applications of free-fall however in the context of Roblox, using that formula is reduntant at best. Using the implemented Roblox methods to simulate free-fall is the better approach. Hence my usage for my formula.