Jump to content
Posted 23 September 2011 - 02:09 PM
Posted 24 September 2011 - 01:36 PM
Posted 25 September 2011 - 02:39 AM
Posted 25 September 2011 - 02:47 PM
Posted 25 September 2011 - 03:42 PM
...Isn't the distance to a circle from a line just part of a collision check?
Yea, his look-up table solution is pretty similar isn't it? And so is Inigo's. That's good, it makes me a bit more confident that I'm on the right track
Thanks for taking the time to look at it.
I think I can solve the In-scattering portion as well, I just need a way to figure out how to determine the distance to the edge of a circle along a line in 2D, given very limited information. I'll post more here if I can ever figure it out.
Posted 25 September 2011 - 08:36 PM
Oohhhhh shiiiitttt. You are right. Seems like my solution is only good for flat-plane surfaces.
Maybe I misunderstood something, but IMHO:
h =/= ((A + (C*x/N)) - R)
i.e. altitude is not a linear function. You can start from upper atmosphere (A), go through point at sea level and end in upper atmosphere again (B).