/// <summary> /// Constructs a new wheel. The WheelSlidingFriction, WheelBrake, WheelSuspension, and WheelDrivingMotor should be configured prior to using this wheel. /// </summary> /// <param name="shape">Shape of the wheel.</param> public Wheel(WheelShape shape) { slidingFriction = new WheelSlidingFriction(this); brake = new WheelBrake(this); suspension = new WheelSuspension(this); drivingMotor = new WheelDrivingMotor(this); Shape = shape; }
/// <summary> /// Constructs a new wheel. /// </summary> /// <param name="shape">Shape of the wheel.</param> /// <param name="suspension">Springy support of the vehicle.</param> /// <param name="motor">Driving force for the wheel.</param> /// <param name="rollingFriction">Friction force resisting the forward and backward motion of the wheel.</param> /// <param name="slidingFriction">Friction force resisting the side to side motion of the wheel.</param> public Wheel(WheelShape shape, WheelSuspension suspension, WheelDrivingMotor motor, WheelBrake rollingFriction, WheelSlidingFriction slidingFriction) { Suspension = suspension; DrivingMotor = motor; Brake = rollingFriction; SlidingFriction = slidingFriction; Shape = shape; }