public TankWheel(float radius, float smallWheelRadius) { this.rad = radius; this.srad = smallWheelRadius; InnerPart = new TankWheelInner(radius) { OutlineColor = Color.Black, OutlineThickness = radius * 0.1f }; InnerCircles = new List <CircleShape>(); for (int i = 0; i < 3; i++) { var circle = new CircleShape(srad) { FillColor = Color.Black, Position = new Vector2f(rad + rad * i * 2 - srad, rad - srad) }; InnerCircles.Add(circle); } }
public TankWheelInner(TankWheelInner copy) : base((Shape)copy) { this.Radius = copy.Radius; this.SetPointCount(copy.GetPointCount()); }