earthFall static method
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,
);