equal
deleted
inserted
replaced
722 -- work out the distance to the target |
722 -- work out the distance to the target |
723 g1X, g1Y = GetGearPosition(CurrentHedgehog) |
723 g1X, g1Y = GetGearPosition(CurrentHedgehog) |
724 g2X, g2Y = GetX(gear), GetY(gear) |
724 g2X, g2Y = GetX(gear), GetY(gear) |
725 q = g1X - g2X |
725 q = g1X - g2X |
726 w = g1Y - g2Y |
726 w = g1Y - g2Y |
|
727 -- Floating point operations are safe, it's only for visuals |
727 r = math.sqrt( (q*q) + (w*w) ) --alternate |
728 r = math.sqrt( (q*q) + (w*w) ) --alternate |
728 |
729 |
729 RCX = getGearValue(gear,"RX") |
730 RCX = getGearValue(gear,"RX") |
730 RCY = getGearValue(gear,"RY") |
731 RCY = getGearValue(gear,"RY") |
731 |
732 |