Wall Tutorial

Expelliarmus

Where to change the sig?
Reaction score
48
Anyone know any good wall tutorials/ examples? You know? the ones that create a line (with like 2+ different segments) perpendicular to the facing of the caster? I would prefer it to be in vJASS, tho GUI/JASS is still good...

Thanks
 

Expelliarmus

Where to change the sig?
Reaction score
48
Lol, you see, I've read this earlier today, and got this inspiration to learn how you got the formula:
JASS:
set x1 = GetLocationX(l) + WallLength * Cos(a + 90 * bj_DEGTORAD) * 1.0
set y1 = GetLocationY(l) + WallLength * Sin(a + 90 * bj_DEGTORAD) * 1.0
set u1 = CreateUnit(p, WallEndID, x1, y1, a * bj_RADTODEG  - 90)


I see it is like a polar projection except the angle bit, which + 1.507 rad and * a number once more (which I tested, controls their distance ).

I just hoped that examples/ tutorial would explain (or link to me) to me how those Sine/Cosine work in finding the angles.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top