- Joined
- Sep 5, 2007
- Messages
- 264
I have a problem...
I need to set an "absolute" height on the z-axis. In my test map, the values returned are correct, but the object still "rises" over cliffs, forming an upside-down V.
I'm doing all this in vJASS. I'm still learning a little, so don't flame me, if this is a simple question (even though, I can assume it is not).
I'm using GetLocationZFixed(x,y) to detect the terrain height at the designated area... it returns correctly.
I'm using a formula that finds the constant velocity vector (x,y,z) and stores it in the projectile, so that I just multiply that by speed * tick-time.
All I want is for it to go in a dead straight line from point A (x,y,z) to point B (x,y,z), without terrain effecting it at all. On flat terrain, I've achieved that, but with cliffs or deformations... that's another story.
I can post my code, if that helps. But, be forewarned, it is pretty long... a good hundred lines, possibly more, last time I looked at it.
Any help would be GREATLY appreciated.
And, if you help with a solution +rep for you... then I can go
I need to set an "absolute" height on the z-axis. In my test map, the values returned are correct, but the object still "rises" over cliffs, forming an upside-down V.
I'm doing all this in vJASS. I'm still learning a little, so don't flame me, if this is a simple question (even though, I can assume it is not).
I'm using GetLocationZFixed(x,y) to detect the terrain height at the designated area... it returns correctly.
I'm using a formula that finds the constant velocity vector (x,y,z) and stores it in the projectile, so that I just multiply that by speed * tick-time.
All I want is for it to go in a dead straight line from point A (x,y,z) to point B (x,y,z), without terrain effecting it at all. On flat terrain, I've achieved that, but with cliffs or deformations... that's another story.
I can post my code, if that helps. But, be forewarned, it is pretty long... a good hundred lines, possibly more, last time I looked at it.
Any help would be GREATLY appreciated.
And, if you help with a solution +rep for you... then I can go
Attachments
Last edited: