Exemplo n.º 1
0
 public I2DObject(I2DPhysicObject physicObject, I2DMaterial material, IModelo2D Modelo)
 {
     System.Diagnostics.Debug.Assert(physicObject != null);
     System.Diagnostics.Debug.Assert(material != null);
     System.Diagnostics.Debug.Assert(Modelo != null);
     this.Material       = material;
     this.PhysicObject   = physicObject;
     this.Modelo         = Modelo;
     I2DObjectAtachtment = new List <IObject2DAtachtment>();
 }
Exemplo n.º 2
0
 public FarseerObject(FarseerWorld world, IModelo2D model, float density = 1, BodyType BodyType = BodyType.Dynamic)
     : this(world, model.Texture, density, BodyType)
 {
 }