Beispiel #1
0
 public void Copy(FCgHitResult from)
 {
     Time         = from.Time;
     Distance     = from.Distance;
     Location     = from.Location;
     ImpactPoint  = from.ImpactPoint;
     Normal       = from.Normal;
     ImpactNormal = from.ImpactNormal;
     TraceStart   = from.TraceStart;
     TraceEnd     = from.TraceEnd;
     _Transform   = from._Transform;
     _Collider    = from._Collider;
     _RigidBody   = from._RigidBody;
     BoneName     = from.BoneName;
 }
Beispiel #2
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();
        }