hey,
this is probably a simple equation, but I have not touched geometry or trig for years, and haven't been able to find an explanation in terms I am familiar with enough to use in warcraft...
basically I need to solve for D:
I want to be able to find the angle that is the middle of the angle from unit a to the other two units. using the angles from A to B and C is tricky bc I have found the angles in the game only go to 180, and I don't know where it crosses back over.
(my end goal is to make a unit run away from two other units, so I want to find the angle that will get him furthest away from both simultaneously.. so I will invert the result... )
how do I get angle D?
thanks!
EDIT: if I measure the distance between the 3 units to find the length of the triangle and use sine to find the objective angle, and the split that in half - that should be the objective angle I need, but how do I apply that to the unit's subjective angle (the on accessible in triggers)?
I could add or subtract that to the relative angle from a to b or from a to c, but how would i know if I need to add or subtract it?
this is probably a simple equation, but I have not touched geometry or trig for years, and haven't been able to find an explanation in terms I am familiar with enough to use in warcraft...
basically I need to solve for D:
I want to be able to find the angle that is the middle of the angle from unit a to the other two units. using the angles from A to B and C is tricky bc I have found the angles in the game only go to 180, and I don't know where it crosses back over.
(my end goal is to make a unit run away from two other units, so I want to find the angle that will get him furthest away from both simultaneously.. so I will invert the result... )
how do I get angle D?
thanks!
EDIT: if I measure the distance between the 3 units to find the length of the triangle and use sine to find the objective angle, and the split that in half - that should be the objective angle I need, but how do I apply that to the unit's subjective angle (the on accessible in triggers)?
I could add or subtract that to the relative angle from a to b or from a to c, but how would i know if I need to add or subtract it?
Last edited: