return to the app

App Design

The app is serverless and deployed using PaaS (Platform-as-a-Service) cloud platforms: Amazon S3 serves as the storage, Amazon CloudFront as the CDN. Animations are generated dynamically, based on a user-provided definition, by AWS Lambda. Lambda functions use a container image stored in Amazon ECR.

Design diagram

Definition Parameters

The table below lists parameters allowed in the definition, per body parameter keys must be followed by the index of the body [0, 3] to which they apply.

 DescriptionTypeAllowed Range
ANGLEInital angle [°]per body[0, 360)
CORCoefficient of restitutionper body[0, 1]
RRadiusper body[10-3, 1]
SPEEDInitial speedper body[0, 103]
XInitial coordinates per body[-103, 103]
Y[0, 103]
GGravitational accelerationglobal[0, 103]

The definition is the same for PreviewLambda and ExportLambda. The time step is fixed and equal to 2 ⋅ 10-3, the simulation doesn't account for drag, friction, or angular momentum of bodies.