Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- rampLength = 0.93
- function calculateDistance(rampHeight, tableHeight, rampAngle)
- theta = rampAngle and math.rad(rampAngle) or math.asin(rampHeight/rampLength)
- return math.sqrt(19.6*math.sin(theta)*rampLength)*math.cos(theta)*math.sqrt(tableHeight/4.905) -- .16 --?
- --rampHeight, none
- end
- --return math.sqrt(2*9.8*rampLength)*math.cos(theta)*math.sqrt(tableHeight/4.905)
- print(calculateDistance(tArgs[1], tArgs[2], tArgs[3]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement