Beispiel #1
0
        public CollisionEventUpdate Copy()
        {
            CollisionEventUpdate c = new CollisionEventUpdate();

            lock (m_objCollisionList)
            {
                foreach (KeyValuePair <uint, ContactPoint> kvp in m_objCollisionList)
                {
                    c.m_objCollisionList.Add(kvp.Key, kvp.Value);
                }
            }
            return(c);
        }
Beispiel #2
0
 public CollisionEventUpdate Copy()
 {
     CollisionEventUpdate c = new CollisionEventUpdate();
     lock (m_objCollisionList)
     {
         foreach (KeyValuePair<uint, ContactPoint> kvp in m_objCollisionList)
             c.m_objCollisionList.Add(kvp.Key, kvp.Value);
     }
     return c;
 }