public Renderer GetIntersectedObjectForTester(IntersectionTester tester) { Renderer obj; m_IntersectedObjects.TryGetValue(tester, out obj); return(obj); }
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); }
void OnIntersectionExit(IntersectionTester tester) { m_IntersectedObjects.Remove(tester); }
internal void AddTester(IntersectionTester tester) { m_Testers.Add(tester); m_IntersectedObjects[tester] = new DirectIntersection(); }