using System; using System.Collections.Generic; using System.Linq; using System.Text; using Azimuth; using Annulus; namespace Lodestone.TestBed { public class Entity { public Blacklight.Core.Drawables.DrawPrimitive DrawPrimitive; public Lodestone.Body PhysicsBody; public static Entity BuildFromPolygon(PerforatedPolygon polygon) { var returnMe = new Entity { DrawPrimitive = new Blacklight.Core.Drawables.Polygon(polygon), PhysicsBody = new Body(), }; returnMe.PhysicsBody.SetShape(Annulus.DeprecatedShapes.Point.Instance); returnMe.DrawPrimitive.InsideColor = new Blacklight.Core.Color(1, 1, 1, 1); returnMe.DrawPrimitive.ShellColor = new Blacklight.Core.Color(0, 0, 0, 1); return returnMe; } } }