Quantcast
Viewing all articles
Browse latest Browse all 92

Is there an easy way to add an array of raycasthit2Ds to a list? (javascript)

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

Viewing all articles
Browse latest Browse all 92

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>