-
-
Ask a physics question in your own words, or pick one to try.
-
"What happens to the image if the candle moves closer to the lens?": a what-if film, then a live lens lab.
-
"How high could I jump on the Moon?": a narrated 3D film; every height comes from the physics engine.
-
"How does a microwave heat food?": a film made from scratch from a Wikipedia article.
-
From the same Moon film, narrated by Dr. Toby with synced subtitles.
Track: Education
Try it: realsim.onrender.com (free server: the first visit can take about a minute to wake up). Code: github.com/Samuel-Ta/realsim
Inspiration
Students ask "why?" all the time, and a textbook answers with an equation. Many schools have no lab to show the real thing. I wanted every student's own question answered with an experiment they can see and change, with every number worked out by real physics.
What it does
- Ask why or how. Dr. Toby answers with a short narrated 3D film: one of 12 ready-made films cut for the question, a new film built from a physics template ("How high could I jump on the Moon?", "What if the string were longer?"), or a film made from scratch from a Wikipedia article ("How does a microwave heat food?").
- Try it yourself. Every film opens as a live 3D lab. Change the length, angle, gas or world, and the engine recomputes.
- Solve homework. Type a problem; RealSim reads the values, checks each one against the question, solves it and builds it in 3D.
- Measure real experiments. Film a ball rolling off a table and measure gravity with honest error bars.
How I built it
- Physics engine: Python, NumPy and SciPy. Every model checks itself; the worlds engine matches the measured gravity of all ten worlds, spin and bulge included.
- Films and labs: React, three.js and React Three Fiber. A film is a list of camera shots over a scene that reads the engine's values; the same scene becomes the live lab.
- Film director: Wikipedia for facts, Gemini (free tier) for a storyboard in a small 3D vocabulary, code to check and build it.
- Dr. Toby: a 2D SVG character who lip-syncs to his voice: Gemini text-to-speech (free tier), with Piper offline as backup.
How I used AI
- In the app: Gemini plans films and voices Dr. Toby, and a local model reads homework values. The physics engine works out every number, and code checks each reply (a line with a number is replaced, a value not in the problem is dropped).
- While building: Claude (Anthropic) was my coding assistant throughout and wrote large parts of the code under my direction. I set the goals and physics rules, chose the designs, and tested the results.
Challenges I ran into
- Films with real numbers. Gemini writes the storyboard; the engine computes the values and templates speak them.
- Planetary gravity. Jupiter's measured gravity is 23.1 m/s² but GM/R² gives 24.8; the difference is spin and bulge, now modelled.
- A natural voice on a free tier. Gemini allows few voice requests a day, so a whole film is voiced in one request and cut into lines at the pauses, then saved.
Accomplishments that I'm proud of
- Any why or how question gets a 3D film, and every number in it comes from code.
- 13 live labs and 12 narrated films.
- A video lab whose error bars agree with an independent analysis of real footage.
What I learned
- Start from the student's question, not the topic list.
- Language models are most useful when code decides and the model explains.
What's next
- More film templates (collisions, springs, circuits) and a teacher view for a class's questions.
Credits
Planet maps: Solar System Scope (CC BY 4.0). Desk texture: Poly Haven (CC0). Directed films: facts from Wikipedia (CC BY-SA) and 3D models from Poly Pizza, credited in each film.