Example #1
0
        public FCgTraceResponse()
        {
            OutHitBuffer = new RaycastHit[HIT_BUFFER];
            OutHits      = new FCgHitResult[HIT_BUFFER];

            for (int i = 0; i < HIT_BUFFER; ++i)
            {
                OutHits[i] = new FCgHitResult();
            }

            OutOverlapBuffer = new Collider[OVERLAP_BUFFER];
            OutOverlaps      = new FCgOverlapResult[OVERLAP_BUFFER];

            for (int i = 0; i < OVERLAP_BUFFER; ++i)
            {
                OutOverlaps[i] = new FCgOverlapResult();
            }

            Reset();
        }
Example #2
0
 public void Copy(FCgOverlapResult from)
 {
     Time       = from.Time;
     _Transform = from._Transform;
     _Collider  = from._Collider;
 }