{"id":31684475,"url":"https://github.com/shanestudios/3d-physics-sandbox","last_synced_at":"2025-11-05T03:02:17.944Z","repository":{"id":315875139,"uuid":"1061114305","full_name":"ShaneStudios/3D-Physics-Sandbox","owner":"ShaneStudios","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-21T09:17:58.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T08:16:32.123Z","etag":null,"topics":["3d","cannonjs","physics","sandbox","simulation","softbodies","softbody","softbody-simulation","threejs"],"latest_commit_sha":null,"homepage":"https://shanestudios.github.io/3D-Physics-Sandbox/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShaneStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T09:16:15.000Z","updated_at":"2025-09-21T09:19:49.000Z","dependencies_parsed_at":"2025-09-21T11:28:27.423Z","dependency_job_id":"813bec9f-57be-49a6-a805-523a69b96f6b","html_url":"https://github.com/ShaneStudios/3D-Physics-Sandbox","commit_stats":null,"previous_names":["shanestudios/3d-physics-sandbox"],"tags_count":1,"template":false,"template_full_name":"github/codespaces-blank","purl":"pkg:github/ShaneStudios/3D-Physics-Sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaneStudios%2F3D-Physics-Sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaneStudios%2F3D-Physics-Sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaneStudios%2F3D-Physics-Sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaneStudios%2F3D-Physics-Sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShaneStudios","download_url":"https://codeload.github.com/ShaneStudios/3D-Physics-Sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShaneStudios%2F3D-Physics-Sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282750336,"owners_count":26721146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-05T02:00:05.946Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","cannonjs","physics","sandbox","simulation","softbodies","softbody","softbody-simulation","threejs"],"created_at":"2025-10-08T08:08:50.948Z","updated_at":"2025-11-05T03:02:17.907Z","avatar_url":"https://github.com/ShaneStudios.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3D Physics Sandbox - Shane Studios\n\nA powerful, browser-based 3D physics simulator and sandbox built with Three.js and Cannon.js. Spawn rigid and soft bodies, interact with them via mouse dragging, and experiment with gravity and collisions in real-time. Perfect for prototyping physics effects, educational demos, or just fun experimentation.\n\n## Features\n\n- **Diverse Shapes**: Spawn spheres, boxes, cylinders, cones, capsules, tori, planes, Platonic solids (icosahedron, dodecahedron, octahedron, tetrahedron), and more exotic forms.\n- **Soft Body Simulation**: Create squishy objects like jello cubes or deformable spheres using particle systems with distance constraints for realistic deformation and jiggle.\n- **Interactive Controls**: Click and drag to grab and throw objects; orbit the camera with mouse.\n- **Customizable Resolution**: Adjust the detail level of squishy objects via a slider for performance tuning.\n- **Gravity Toggle**: Enable/disable gravity to create zero-G environments.\n- **Collision Boundaries**: Enclosed arena with walls and floor for contained simulations.\n- **4D Projection**: Spawn rotating tesseracts for a mind-bending hyperspace twist.\n- **Real-Time Rendering**: Smooth 60 FPS physics and visuals, with shadows and lighting.\n\n## Quick Start\n\n1. **Download or Clone**:\n   ```\n   git clone https://github.com/ShaneStudios/3D-Physics-Sandbox.git\n   cd 3D-Physics-Sandbox\n   ```\n\n2. **Run Locally**:\n   - Open `index.html` in any modern web browser (Chrome, Firefox, Safari recommended).\n   - No build tools or servers needed—it's a self-contained static file.\n\n3. **Online Demo**:\n   - [Live Demo](https://shanestudios.github.io/3D-Physics-Sandbox/)\n\n## Usage\n\n- **Spawning Objects**:\n  - Select a shape from the dropdown.\n  - Adjust size (0.5–5) and resolution (for squishy objects only).\n  - Click **Spawn Shape** to add a random-positioned object above the arena.\n\n- **Interaction**:\n  - **Orbit Camera**: Left-click and drag to rotate view.\n  - **Throw Objects**: Left-click on an object and drag to position, then release to fling (velocity based on drag distance).\n  - **Clear Scene**: Click **Clear All** to remove dynamic objects.\n\n- **Physics Tweaks**:\n  - Toggle **Gravity** to float or fall objects.\n  - Higher resolution = more detailed squishy deformation but higher CPU usage.\n\n## Controls\n\n| Action | Input |\n|--------|-------|\n| Orbit Camera | Mouse drag (left button) |\n| Throw/Drag Object | Click + drag on object |\n| Spawn | Button click |\n| Clear | Button click |\n| Toggle Gravity | Button click |\n\n## Performance Tips\n\n- Lower resolution for squishy objects on lower-end hardware.\n- Limit spawned objects to ~10–20 for smooth framerates.\n- Browser dev tools: Monitor CPU in Performance tab.\n\n## Tech Stack\n\n- **Rendering**: Three.js (v0.139)\n- **Physics**: Cannon.js (v0.6.2)\n- **CDNs**: Unpkg, Cloudflare (all free, no external dependencies)\n\n## Contributing\n\nPull requests welcome! For major changes, please open an issue first.\n\n1. Fork the repo.\n2. Create your feature branch (`git checkout -b feature/AmazingNewShape`).\n3. Commit your changes (`git commit -m 'Add d20 polyhedron support'`).\n4. Push to the branch (`git push origin feature/AmazingNewShape`).\n5. Open a Pull Request.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file (or add one if missing).\n\n## Credits\n\nCreated by **Shane Studios**  \n[GitHub](https://github.com/ShaneStudios) \n\nInspired by physics sandboxes like those in Unity/UE, but fully client-side. Thanks to the Three.js and Cannon.js teams for amazing libraries! ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanestudios%2F3d-physics-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanestudios%2F3d-physics-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanestudios%2F3d-physics-sandbox/lists"}