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