Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
zangle in parabolic function
zangle in parabolic function
01-18-2010, 09:48 AM
#1
blanc_dummy
how to get correct zangle in current height at parabolic function
01-18-2010, 02:47 PM
#2
Tot
use the derivation of your function; it represents the zangle of the function in this specific point
01-18-2010, 06:18 PM
#3
moyack
Quote:
Originally Posted by
Tot
use the derivation of your function; it represents the zangle of the function in this specific point
If and only if the height is a function of displacement.
if z = f(x) then ATAN(dz/dx) will represent the angle.
01-18-2010, 06:52 PM
#4
Zerzax
Or take the average between the z of your last point and the z of your current point:
(Zc - Zo)/(Displacement)
Where Zc is current, Zo is the one before.
It really depends on the way you defined your parabola.
01-19-2010, 06:33 AM
#5
blanc_dummy
i got it thanks.