{"id":22058985,"url":"https://github.com/bonezone2001/fabric-simulation","last_synced_at":"2025-08-03T12:03:07.634Z","repository":{"id":106209010,"uuid":"470744651","full_name":"bonezone2001/fabric-simulation","owner":"bonezone2001","description":"The fabric algorithm in C++, rendered with the pixel game engine","archived":false,"fork":false,"pushed_at":"2022-03-18T16:05:04.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T23:09:12.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonezone2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-03-16T20:39:58.000Z","updated_at":"2022-04-26T12:41:29.000Z","dependencies_parsed_at":"2023-03-17T03:46:14.787Z","dependency_job_id":null,"html_url":"https://github.com/bonezone2001/fabric-simulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonezone2001%2Ffabric-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonezone2001%2Ffabric-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonezone2001%2Ffabric-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonezone2001%2Ffabric-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonezone2001","download_url":"https://codeload.github.com/bonezone2001/fabric-simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136355,"owners_count":20566586,"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","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":[],"created_at":"2024-11-30T17:26:36.229Z","updated_at":"2025-03-23T16:47:52.531Z","avatar_url":"https://github.com/bonezone2001.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fabric Simulation C++\n\n### Physics Constraint Example\n\nThis was just a fun little project I decided to do at like 4 AM on my birthday!\n\nThis is a 2D simulation of cloth. Sorta. I just use it for simulating cloth but it can also simulate rope, chains and other things that are linked together via physics constraints.\n\nThe code is not the absolute best I've ever made, I made it really quickly after seeing somebody else do something similar for their project. I just sped through it so if the code isn't of the highest quality or I do things wrong. You have my appologises. It is also my first time creating my OWN CMake project. I've had experience building other people's but never creating my own.\n\n## Usage\n\n### Prerequisites\n\nYou will need:\n\n * A modern C/C++ compiler\n * CMake 3+ installed (or really just kinda copy files manually into a project if you want)\n * A IDE or your choosing. I prefer Visual Studio on Windows.\n\n### Building The Project\n\n#### Git Clone\n\nFirst we need to check out the git repo:\n\n```bash\n❯ git clone https://github.com/bonezone2001/fabric-simulation.git\n❯ cd fabric-simulation\n\n-- Use CMake GUI to build or...\n\n\u003e mkdir build\n\u003e cd build\n❯ cmake ..\n```\nYou can skip the cmake commands and creating a build folder if you use the CMake GUI\n\n### Controls\n\nThe simulation controls were kinda rushed so  I haven't created some nice-to-have features like resetting, line delete.\n\n```base\n\u003e Left click - Add a Point\n\u003e Left click over point - Link point (click on another point to link the two)\n\u003e Right click over point - Lock point\n\u003e Middle click over point - Delete point and it's links\n\u003e Space - Pause / Unpause (simulation starts paused)\n```\n\n#### Contributing\n\nPlease submit any fixes or improvements, and I promise to review it as soon as I can:\n\n * [Submit Issues](https://github.com/bonezone2001/fabric-simulation/issues)\n * [Pull Requests](https://github.com/bonezone2001/fabric-simulation/pulls)\n\n### License\n\n\u0026copy; 2022 Kyle Pelham.\n\nOpen sourced under Apache license, the terms of which can be read here — [Apache License](https://opensource.org/licenses/Apache-2.0).\n\n\n### Acknowledgements\n\n[Pixel Game Engine](https://github.com/OneLoneCoder/olcPixelGameEngine) created by OneLoneCoder is an amazingly easy to use 2D render library. Check him out!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonezone2001%2Ffabric-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonezone2001%2Ffabric-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonezone2001%2Ffabric-simulation/lists"}