Exemplo n.º 1
0
 public static void clonegeom(ref Geom newgeom, ref Geom oldgeom)
 {
     newgeom.Id = Geom.GetNextId();
     newgeom.RestitutionCoefficient = oldgeom.RestitutionCoefficient;
     newgeom.FrictionCoefficient = oldgeom.FrictionCoefficient;
     newgeom.GridCellSize = oldgeom.GridCellSize;
     newgeom.CollisionGroup = oldgeom.CollisionGroup;
     newgeom.CollisionEnabled = oldgeom.CollisionEnabled;
     newgeom.CollisionResponseEnabled = oldgeom.CollisionResponseEnabled;
     newgeom.CollisionCategories = oldgeom.CollisionCategories;
     newgeom.CollidesWith = oldgeom.CollidesWith;
     newgeom.SetVertices(oldgeom.LocalVertices);
     DistanceGrid.Instance.CreateDistanceGrid(newgeom);
 }