Raycast() публичный Метод

public Raycast ( RayCastOutput output, RayCastInput input, Transform xf, int childIndex ) : bool
output RayCastOutput
input RayCastInput
xf Box2D.Common.Transform
childIndex int
Результат bool
Пример #1
0
        public override bool Raycast(RayCastOutput output, RayCastInput input, Transform xf, int childIndex)
        {
            Debug.Assert(childIndex < Count);

            EdgeShape edgeShape = pool0;

            int i1 = childIndex;
            int i2 = childIndex + 1;

            if (i2 == Count)
            {
                i2 = 0;
            }

            edgeShape.Vertex1.Set(Vertices[i1]);
            edgeShape.Vertex2.Set(Vertices[i2]);

            return(edgeShape.Raycast(output, input, xf, 0));
        }