- Home /
Question by
SuperNovaXM · Sep 01, 2016 at 05:33 AM ·
arraynormalspolygonsaveragespherecastall
Create array of the normals of each polygon SphereCastAll is colliding with?
I have a script using SphereCastAll and I want to take the average of the normals of every polygon (quad, preferably), but using a RayCastHit[] array only returns one value for each collider as far as I can tell, and I can't set it up to return a value for each polygon. I don't have much experience with arrays, so if someone knows more than I do that would be great.
Comment