earthFall static method

GravitySim earthFall({
  1. double height = 0.0,
  2. double floor = 500.0,
})

Standard Earth gravity — falling object from rest.

Implementation

static GravitySim earthFall({
  double height = 0.0,
  double floor = 500.0,
}) =>
    GravitySim(
      position0: height,
      velocity0: 0.0,
      acceleration: 9.81 * 50, // scaled for pixel units
      endPosition: floor,
    );