public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, uint numSubKeyBits, uint subKey)
 {
     if (m_ClosestHit.Fraction < oldFraction)
     {
         m_ClosestHit.Transform(transform, numSubKeyBits, subKey);
     }
 }
Example #2
0
 public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
 {
     for (int i = oldNumHits; i < m_NumHits; i++)
     {
         T hit = AllHits[i];
         hit.Transform(transform, rigidBodyIndex);
         AllHits[i] = hit;
     }
 }
Example #3
0
 public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, uint numSubKeyBits, uint subKey)
 {
     for (int i = oldNumHits; i < m_NumHits; i++)
     {
         T hit = AllHits[i];
         hit.Transform(transform, numSubKeyBits, subKey);
         AllHits[i] = hit;
     }
 }
 public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, uint numSubKeyBits, uint subKey)
 {
     m_lastColliderKey = ColliderKey.Empty;
     m_lastColliderKey.PushSubKey(numSubKeyBits, subKey);
     if (m_ClosestHit.Fraction < oldFraction)
     {
         m_ClosestHit.Transform(transform, numSubKeyBits, subKey);
     }
 }
        public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
        {
            if (rigidBodyIndex == m_selfRBIndex)
            {
                m_ClosestHit = m_OldHit;
                NumHits      = 0;
                MaxFraction  = oldFraction;
                m_OldHit     = default(T);
                return;
            }

            if (m_ClosestHit.Fraction < oldFraction)
            {
                m_ClosestHit.Transform(transform, rigidBodyIndex);
            }
        }
        public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
        {
            if (rigidBodyIndex == m_selfRBIndex)
            {
                for (int i = oldNumHits; i < NumHits; i++)
                {
                    AllHits.RemoveAtSwapBack(oldNumHits);
                }

                return;
            }

            for (int i = oldNumHits; i < NumHits; i++)
            {
                T hit = AllHits[i];
                hit.Transform(transform, rigidBodyIndex);
                AllHits[i] = hit;
            }
        }
        public void TransformNewHits(int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
        {
            // Ignore self hits
            if (rigidBodyIndex == m_selfRBIndex)
            {
                FallbackToPreviousHit();
                return;
            }

            // Ignore triggers
            if (IsTrigger(m_world.Bodies, rigidBodyIndex, m_lastColliderKey))
            {
                FallbackToPreviousHit();
                return;
            }

            if (m_ClosestHit.Fraction < oldFraction)
            {
                m_ClosestHit.Transform(transform, rigidBodyIndex);
            }
        }
Example #8
0
 public void TransformNewHits
     (int oldNumHits, float oldFraction, Math.MTransform transform, int rigidBodyIndex)
 {
 }
Example #9
0
 public void TransformNewHits
     (int oldNumHits, float oldFraction, Math.MTransform transform, uint numSubKeyBits, uint subKey)
 {
 }