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.
We use Modal for server-less functions (mostly just calling to AI). All Modal functions are specified here.
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