Infinitegde
O.O
- Reaction score
- 86
XD, Woops, I'll put an arc in there as soon as I finished this test. Also, I'm assuming this function returns phi?
maybe you should the angle beetween 3D-points?
if f.time <= 300 * f.max_time then
call SetUnitFlyHeight(f.ice, FLY_HEIGHT + DISTANCE + DISTANCE * Sin( bj_PI * 2 * f.time),0)
call SetUnitFlyHeight(f.fire, FLY_HEIGHT + DISTANCE + DISTANCE * Sin( bj_PI + bj_PI * 2 * f.time),0)
call SetUnitX(f.ice,f.caster_x + (DISTANCE * Sin(PI_HALF + bj_PI * 2 * f.time)) * Sin(f.facing))
call SetUnitY(f.ice,f.caster_y + (DISTANCE * Sin(PI_HALF + bj_PI * 2 * f.time)) * Cos(f.facing))
call SetUnitX(f.fire,f.caster_x + (DISTANCE * Sin(bj_PI + PI_HALF+ bj_PI * 2 * f.time)) * Sin(f.facing))
call SetUnitY(f.fire,f.caster_y + (DISTANCE * Sin(bj_PI + PI_HALF+ bj_PI * 2 * f.time)) * Cos(f.facing))
set f.time = f.time + SLIDE_PERIOD
else