Snippet Angles: Cone

Dirac

22710180
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]
 

Dirac

22710180
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.
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.

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top