Пример #1
0
 public static void Accelerate(this Rigidbody rigidbody, float acceleration, Axis axis = Axis.XYZ)
 {
     rigidbody.Accelerate(new Vector3(acceleration, acceleration, acceleration), axis);
 }
Пример #2
0
 public static void Accelerate(this Rigidbody rigidbody, float speed, Axes axes = Axes.XYZ)
 {
     rigidbody.Accelerate(new Vector3(speed, speed, speed), axes);
 }