public static void AccelerateTowards(this Rigidbody rigidbody, float targetAcceleration, float speed, Axis axis = Axis.XYZ) { rigidbody.AccelerateTowards(new Vector3(targetAcceleration, targetAcceleration, targetAcceleration), speed, InterpolationModes.Quadratic, axis); }
public static void AccelerateTowards(this Rigidbody rigidbody, float targetSpeed, float deltaTime, Axes axes = Axes.XYZ) { rigidbody.AccelerateTowards(new Vector3(targetSpeed, targetSpeed, targetSpeed), deltaTime, axes); }