| 06-01-2006, 08:39 AM | #2 |
yes, the symmetry will be obeyed 99.9%. there might be a difficulty with numerical stability if the angle grows too large(10^7 degrees or so), however, I believe the internal representation of facing angle forces it to -180 to 180 or 0 to 360 so that won't be a problem. |
| 06-01-2006, 08:56 AM | #3 |
Yay! So i got rid of the angle checking and just put angle = angle + 180 and it's working exactly the same as before, so that's good. But it's also bad because it wasn't working properly in the first place! lol. So, back to my original question, can anyone see a problem in my code? I'm specifically looking for any reason why the bullet should not simply turn around (it does sort of a U-turn rather than just reversing direction.) |
| 06-01-2006, 11:47 AM | #4 |
Because there is a limit to how fast units will change their facing angle, no matter what speed you tell them to do it at (ie. over 0 seconds doesn't make it instant). The best you can do is create a new unit of exactly the same type facing the new angle you need (and remove the old on ofcourse). |
| 06-01-2006, 12:18 PM | #5 | |
Quote:
Isnt there a spell like Terror ? or fear spell .... make it only target wards... and make the missles wards. Just add a condition if the missle is within a certain distance of the the casting unit the above triggers will not affect it. besids I dont think movement triggers can over-ride that spell |
