Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public static void AccelerateTowards(this Rigidbody rigidbody, float targetSpeed, float deltaTime, Axes axes = Axes.XYZ)
 {
     rigidbody.AccelerateTowards(new Vector3(targetSpeed, targetSpeed, targetSpeed), deltaTime, axes);
 }