jmickle66666666 / DoomUnity

Unity libs for working with Doom, also my Doom engine: NaSTY
87 stars 7 forks source link

change sector height detection to raycast method #40

Open jmickle66666666 opened 6 years ago

jmickle66666666 commented 6 years ago

Currently thing starting heights are all accounted for when building the level, which involves a bunch of calculations and can be unreliable in some specific scenarios.

If the vertical bounds of the map are stored, a quick raycast from the top down vertically will give an accurate height of a sector at a specific point. This should be more reliable and quicker.