Allows the connected wheel and vehicle to smoothly absorb bumps.
Inheritance: ISpringSettings, ISolverSettings
コード例 #1
0
ファイル: Wheel.cs プロジェクト: VICOGameStudio-Ujen/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;
 }
コード例 #2
0
ファイル: Wheel.cs プロジェクト: 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;
 }
コード例 #3
0
ファイル: Wheel.cs プロジェクト: VICOGameStudio-Ujen/igf
 /// <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;
 }
コード例 #4
0
ファイル: Wheel.cs プロジェクト: 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;
 }