public override bool RayCast(ref RayCastInput input, ref Transform transform, int childIndex, out RayCastOutput output) { Debug.Assert(childIndex < Vertices.Count); int i1 = childIndex; int i2 = childIndex + 1; if (i2 == Vertices.Count) { i2 = 0; } Vector2 v1 = Vertices[i1]; Vector2 v2 = Vertices[i2]; return(RayCastHelper.RayCastEdge(ref v1, ref v2, ref input, ref transform, out output)); }
public override bool RayCast(ref RayCastInput input, ref Transform transform, int childIndex, out RayCastOutput output) { return(RayCastHelper.RayCastEdge(ref _vertex1, ref _vertex2, ref input, ref transform, out output)); }