Skip to content

DuncanAJohnson/gist

Repository files navigation

Generative (Physics) Simulations

Enter in a prompt and an interactive simulation with controls, objects, outputs, and graphs will appear! Currently, only very basic simulations are possible, and our goal is to expand the possibilities.

We use Matter.js for our physics engine.

We use Recharts for graphing output.

External API calls with Modal

We use Modal for server-less functions (mostly just calling to AI). All Modal functions are specified here.

AI Priming

Our LLM priming can be found here. If you would like, you can take this prompt and put it into your LLM of choice, generate json, and paste the json into the simulation.

An upcoming task is adding new Simulation Components. A few ideas we have:

  • Composite bodies made up of more than one object
  • Friction/air resistance (likely will just edit Object.tsx)
  • A grid for showing units

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors