Superclass for the shape of the tires of a vehicle. Responsible for figuring out where the wheel touches the ground and managing graphical properties.
Inheritance: ICollisionRulesOwner
Example #1
0
 /// <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;
     this.SlidingFriction = slidingFriction;
     Shape                = shape;
 }
Example #2
0
File: Wheel.cs Project: rc183/igf
 /// <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;
     this.SlidingFriction = slidingFriction;
     Shape = shape;
 }
Example #3
0
 /// <summary>
 /// Constructs a new 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;
 }
Example #4
0
File: Wheel.cs Project: rc183/igf
 /// <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;
 }