- Joined
- May 16, 2012
- Messages
- 644
Hello Hive!
I'm working on my next Hero Concept and i'm trying to solve a problem related to initial x and y for a missile. I want to be able to adjust the initial x and y coordinates of my missile so it will come out from the barrel of my hero weapon, and for that i'm using a simple polar projection like so:
where x and y are my unit current position. The problem, as you can see in the preview below, is that this offset fails. So anyone could give me some ideas on how to make it work like the "Projectile Launch" fields from the Object Editor fields?
Thanks in advance.
I'm working on my next Hero Concept and i'm trying to solve a problem related to initial x and y for a missile. I want to be able to adjust the initial x and y coordinates of my missile so it will come out from the barrel of my hero weapon, and for that i'm using a simple polar projection like so:
JASS:
x + 100*Cos(face)
y + 100*Sin(face)
where x and y are my unit current position. The problem, as you can see in the preview below, is that this offset fails. So anyone could give me some ideas on how to make it work like the "Projectile Launch" fields from the Object Editor fields?
Thanks in advance.