- Joined
- Sep 12, 2008
- Messages
- 657
Hey.. im working on a missle system (curretly re-creating the current one in spell section, then im gonna update)
i set Coordinate[1] to this:
and Coordinate[2] to this:
(a timer that runs every 0.01 calls it)
and i set coordinates of the missle and everything works fine.
my question is:
is there a way to know how much distance it will pass in total?
(used to create a parabola formula arc system, to set the "D")
i set Coordinate[1] to this:
JASS:
set Coordinate[1] = GetUnitX(MissleUnit[CMTable[2]]) + MissleSpeed[CMTable[2]] * Cos (MissleFacing[CMTable[2]] * bj_DEGTORAD
JASS:
set Coordinate[2] = GetUnitY(MissleUnit[CMTable[2]]) + MissleSpeed[CMTable[2]] * Sin (MissleFacing[CMTable[2]] * bj_DEGTORAD
(a timer that runs every 0.01 calls it)
and i set coordinates of the missle and everything works fine.
my question is:
is there a way to know how much distance it will pass in total?
(used to create a parabola formula arc system, to set the "D")