public Renderer GetIntersectedObjectForTester(IntersectionTester tester)
        {
            Renderer obj;

            m_IntersectedObjects.TryGetValue(tester, out obj);
            return(obj);
        }
Beispiel #2
0
        internal Renderer GetIntersectedObjectForTester(IntersectionTester tester, out Vector3 contactPoint)
        {
            var intersection = m_IntersectedObjects[tester];

            contactPoint = intersection.contactPoint;
            return(intersection.renderer);
        }
        internal Renderer GetIntersectedObjectForTester(IntersectionTester tester)
        {
            Renderer obj = null;

            if (tester)
            {
                m_IntersectedObjects.TryGetValue(tester, out obj);
            }

            return(obj);
        }
 void OnIntersectionExit(IntersectionTester tester, Renderer obj)
 {
     m_IntersectedObjects.Remove(tester);
 }
 void OnIntersectionStay(IntersectionTester tester, Renderer obj)
 {
     m_IntersectedObjects[tester] = obj;
 }
 public void AddTester(IntersectionTester tester)
 {
     m_IntersectedObjects.Clear();
     m_Testers.Add(tester);
 }
Beispiel #7
0
 void OnIntersectionExit(IntersectionTester tester)
 {
     m_IntersectedObjects.Remove(tester);
 }
Beispiel #8
0
 internal void AddTester(IntersectionTester tester)
 {
     m_Testers.Add(tester);
     m_IntersectedObjects[tester] = new DirectIntersection();
 }