Build a 2d html physics playground with tons of sick physics phenomena for me to play…
- User
Build a 2d html physics playground with tons of sick physics phenomena for me to play with with my mouse
Assistant
I'll create an awesome 2D physics playground with multiple interactive scenes and physics phenomena you can play with using your mouse. Let me start by exploring the project and then building it out.
Now let me create the physics playground with tons of interactive physics phenomena!
Let me fix the TypeScript errors:
Your 2D Physics Playground is ready! 🎮⚡
Features Included:
🎯 8 Interactive Scenes
- Sandbox - Free play with random shapes to drag and throw
- Newton's Cradle - Classic pendulum physics with 5 balls
- Chain Bridge - Chain link physics with balls dropping on it
- Soft Body - Jelly-like deformable bodies (jelly cubes & blobs)
- Ragdoll - Articulated human figures with joints
- Slingshot - Angry Birds-style projectile launcher
- Stacking - Pyramid stacks of boxes and circles
- Particles - 150 bouncing particles with spinning obstacles
🎮 Interactive Controls
- Drag any object with your mouse to throw it around
- Spawn new circles, rectangles, or triangles
- Explode - applies explosive force to all objects
- Anti-G - temporarily reverses gravity
- Wind - applies horizontal force to everything
- Clear - removes all dynamic bodies
⚙️ Real-time Physics Parameters
- Gravity (-2 to 3) - go upside down or zero-G!
- Bounciness/Restitution (0 to 1.2) - super bouncy or dead weight
- Friction (0 to 1) - slippery or sticky surfaces
- Time Scale (0.1x to 2x) - slow motion or fast-forward
🎨 Visual Design
- Dark sleek UI with slate/blue/purple gradient accents
- Real-time body counter
- Pause/Resume functionality
- Smooth 60fps physics rendering with Matter.js
💡 How to Play
- Click any scene from the sidebar
- Drag objects with your mouse to throw them
- Adjust physics sliders in real-time
- Spawn shapes or trigger effects
- Try zero gravity or reverse gravity for fun!
Files built:
src/App.tsx,index.html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.