Example #1
0
        protected virtual void SetWheel(VehicleEntity vehicle, VehiclePartIndex index, WheelAbstractState state)
        {
            var comp = WheelEntityUtility.GetWheel(vehicle, index);

            comp.ColliderSteerAngle = state.ColliderSteerAngle;
        }
Example #2
0
        protected override void SetWheel(VehicleEntity vehicle, VehiclePartIndex index, WheelAbstractState state)
        {
            base.SetWheel(vehicle, index, state);

            var fromState = (WheelState)state;
            var comp      = WheelEntityUtility.GetWheel(vehicle, index);

            comp.SteerAngle = fromState.SteerAngle;
        }