public static void LerpForwardFriction(WheelCollider wheel, WheelFrictions from, WheelFrictions to, float factor) { var friction = wheel.forwardFriction; Friction.LerpFriction(ref friction, from.forward, to.forward, factor); wheel.forwardFriction = friction; }
public static void LerpSidewaysFriction(WheelCollider wheel, WheelFrictions from, WheelFrictions to, float factor) { var friction = wheel.sidewaysFriction; Friction.LerpFriction(ref friction, from.sideways, to.sideways, factor); wheel.sidewaysFriction = friction; }
public static void LerpFrictions(WheelCollider wheel, WheelFrictions from, WheelFrictions to, float factor) { LerpForwardFriction(wheel, from, to, factor); LerpSidewaysFriction(wheel, from, to, factor); }