• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

Ignoring terrain's effect on z-axis

Not open for further replies.
Level 14
Aug 30, 2004
I want a unit to act as a laser beam. I want to move him across the screen at a constant rate. This works fine except when he's going straight and then uphill...the laser moves forward then tilts upward at an angle and levels out...just like any flying unit would.

I want the laser to just go straight.

I think I could do the math if I knew his current flying height (which I do) and the height of the terrain at any given point. But I can't seem to find out what the height of a terrain point is... anyone know how to do that dynamically (i.e. during the game).

Not open for further replies.