Snippet Angles: Cone

Dirac

22710180
Reaction score
147
You mean, to check if unit "a" is behind unit "b"?
Easily done with cone...
[ljass]Cone(angle from unit a to b, b unit facing, 70 degrees)[/ljass]
[ljass]Cone(Atan2(GetUnitY(b)-GetUnitY(a),GetUnitX(b)-GetUnitX(a)),GetUnitFacing(b),70*bj_DEGTORAD)[/ljass]
 

AgentChaos

New Member
Reaction score
1
Well, the cone application is almost finished, and all of the formula I has been updated on the first page.
 

Dirac

22710180
Reaction score
147
I still don't know what you're up to...
From my point of view you could delete every line of code you have there and replace it with the cone function
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
I hadn't internet for a while so i couldn't manage to check out the post.
A circular sector describes a cone as a surface, not as angle.
Breath of fire is an isosceles trapezoid (lol, greek definition) and this formula can fix it to become more physical, making the straight lines circular.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top