HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jumping Height.

03-30-2009, 08:01 AM#1
wraithseeker
Collapse JASS:
function ParabolaZ takes real h, real d, real x returns real
  return (4 * h / d) * (d - x) * (x / d)
endfunction

How do I find the real H? Right now, I know how to find the real d and real x.
03-30-2009, 08:15 AM#2
wraithseeker
For a jump system, I don't want to use a fixed height, I want it to vary with distance the unit is jumping or if that is not possible, the terrain height then.
03-30-2009, 08:54 AM#3
Captain Griffen
Then decide how you want it to vary and then pass that value.
03-30-2009, 09:20 AM#4
wraithseeker
The problem is, I don't know how? My math's suck totally.
03-30-2009, 10:30 AM#5
moyack
check here: http://www.wc3c.net/showthread.php?t=102077

Zoom (requires log in)
03-30-2009, 02:49 PM#6
wraithseeker
I know about all the variable, but I don't know what H should be at all. I am totally lost with the variable H although I know it is the maximum height the unit can attain at the highest point of his jump. Using a fixed height would seem weird.
03-30-2009, 03:57 PM#7
moyack
Try this: h = 0.3333*d, if you don't like it, try h = 0.25*d

Where d is the distance the unit will move.
03-31-2009, 02:25 PM#8
wraithseeker
solved, thanks moyack!