Okay guys i made jump trigger and i want some function for my creep trigger AI. I want creeps jump ahead of the curve, but having problems with figuring out how to implement this, i tried few times and it doesnt work properly, i think i dont understand how the angles count in sc2. Pls help!
i need function which will calculate the collision time of two units, so i know the facing angle of the target, angle between attacker and the target, and their speeds.
Some advice maybe where to start from, who is strong in math. I guess i need to use sin/cos theorem for this,
i know lenght of one side of triangle (distance between attacker and target) = R for exaple,
the other two sides :
V1*t , V1 = speed of attacker
V2*t , V2 = target unit speed
t - time , where this units supposed to collide, also i know the angle between R and V2*t i need to express t somehow
Okay guys i made jump trigger and i want some function for my creep trigger AI. I want creeps jump ahead of the curve, but having problems with figuring out how to implement this, i tried few times and it doesnt work properly, i think i dont understand how the angles count in sc2. Pls help!
what's your current issue?
i need function which will calculate the collision time of two units, so i know the facing angle of the target, angle between attacker and the target, and their speeds.
Some advice maybe where to start from, who is strong in math. I guess i need to use sin/cos theorem for this,
i know lenght of one side of triangle (distance between attacker and target) = R for exaple, the other two sides : V1*t , V1 = speed of attacker
V2*t , V2 = target unit speed t - time , where this units supposed to collide, also i know the angle between R and V2*t i need to express t somehow