wraithseeker
Tired.
- Reaction score
- 122
So I have vector a which is x y z of initial unit position available and vector b x y z of final unit position available, how do I move them?
I am new to vectors so don't blame me for doing stupid stuff, this is deacclerating and not accelerating. They start from a variable of x speed and then x decrement and end at 0 speed.
JASS:
// initial vector
set d.zx = GetUnitX(target) * Cos(angle)
set d.zy = GetUnitY(target) * Sin(angle)
call MoveLocation(L,d.x,d.y)
set d.zz = GetLocationZ(L) // I am not using Z axis for now, ignore it same for the rest
JASS:
JASS:
I am new to vectors so don't blame me for doing stupid stuff, this is deacclerating and not accelerating. They start from a variable of x speed and then x decrement and end at 0 speed.