示例#1
0
        protected override void GetWheelState(CarWheelComponent comp, WheelAbstractInternInfo info)
        {
            base.GetWheelState(comp, info);
            var carWheelInfo = (CarWheelInfo)info;

            carWheelInfo.SteerAngle = comp.SteerAngle;
        }
示例#2
0
 public MotorInternState()
 {
     Wheels = new WheelAbstractInternInfo[3];
     for (int i = 0; i < 3; ++i)
     {
         Wheels[i] = new MotorWheelInfo();;
     }
 }
示例#3
0
 public CarInternState()
 {
     Wheels = new WheelAbstractInternInfo[(int)VehiclePartIndex.MaxWheelCount];
     for (int i = 0; i < (int)VehiclePartIndex.MaxWheelCount; ++i)
     {
         Wheels[i] = new CarWheelInfo();;
     }
 }
示例#4
0
 protected virtual void GetWheelState(CarWheelComponent comp, WheelAbstractInternInfo info)
 {
     info.ColliderSteerAngle = comp.ColliderSteerAngle;
 }