Hi I'm new to Dark basic and ya I'm stuck on 2d math...
I'm trying to make an auto aiming gun.
and so I went (all psuedo like)
Xvec = Xtarget - Xorigin
Yvec = Ytarget - Yorigin
sqrt(XVec*XVec + Yvec*Yvec)
then broke "tried" to break it down into units, like some 2d math tutorials stated by dividing each component of the vector by the vectors length which is supposed to bring it to 1 unit distances...
unfortunatly... it doesn't... it brings it right to 0
Please help.. any ideas welcome and if you tell me this way is crap and you have a much cooler way of doing it.. I'll believe you