I posted this in Bug Reports once. I don't know what happened to it
, so I have to agree, it is quite annoying not being able to find a free vector.
There are work arounds however. Had I been able to find free vectors I would've just used them, but otherwise they just mess up my code, so I make my own vectors, i.e. These are the only two vector commands I had for my physics library, I guess I could expand them easily though.
type vec3
x as float
y as float
z as float
endtype
dim kxvec(0) as vec3
function kx_makeVector()
local vec as integer
array insert at bottom kxvec() : vec=array count(kxvec())
endfunction vec
function kx_setVector(vec,x as float, y as float, z as float)
kxcontvec=vec
kxvec(vec).x=x
kxvec(vec).y=y
kxvec(vec).z=z
endfunction
And basically work it like this:
vec1=kx_makeVector()
kx_setVector(vec1,100,-100,32.5)
Easy Peasy.