I have been using this:
var hits : RaycastHit2D[] = Physics2D.LinecastAll (value, value);
But I'm slowly learning that the built in arrays in javascript suck and I'd like to be able to use some of the functions that a list has instead. Is there a nice (not memory intensive) way to convert the array of RaycastHit2Ds to a list?
I wanted to use the join function, but that doesn't seem to be a function of the built in arrays.
Thankyou!
Romano
↧