can we have this?
physicsworld.castrayall
Raycasthit.point
and multiple hits per collider
so lets say casting a ray from the top of the page to the bottom of this C
it would hit C 2 times, at the top and bottom.
so for example u can get the thickness of the hit
Raycasthit hit = nativearray[raycasthit] whit C collider;
float3 StartPos = bottom of C; (actually endpos of raycast)
float Thickness = math.infinity;
for (int i =0;i<hit.point.lenght;i++)
{
float NewThickness = math.lenght[hit.point[i] - startpos);
if (NewThickness < Thickness)
{
Thickness = NewThickness
}
}