{"id":23384392,"url":"https://github.com/michal34512/mk_engine","last_synced_at":"2025-09-03T13:39:18.277Z","repository":{"id":176311328,"uuid":"655041364","full_name":"michal34512/MK_Engine","owner":"michal34512","description":"Simple SFML physic engine","archived":false,"fork":false,"pushed_at":"2023-07-14T13:07:48.000Z","size":6548,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:17:46.129Z","etag":null,"topics":["collision-detection","collisions","friction","physics-engine","rotations","sfml","user-friendly"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michal34512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-06-17T17:41:38.000Z","updated_at":"2024-07-22T20:24:29.000Z","dependencies_parsed_at":"2023-07-12T05:30:33.982Z","dependency_job_id":"0b173126-fb85-4e4a-b38c-e8a0ffadf31d","html_url":"https://github.com/michal34512/MK_Engine","commit_stats":null,"previous_names":["michal34512/mk_engine"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/michal34512/MK_Engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FMK_Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FMK_Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FMK_Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FMK_Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michal34512","download_url":"https://codeload.github.com/michal34512/MK_Engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FMK_Engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273453381,"owners_count":25108470,"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-09-03T02:00:09.631Z","response_time":76,"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":["collision-detection","collisions","friction","physics-engine","rotations","sfml","user-friendly"],"created_at":"2024-12-21T23:19:44.576Z","updated_at":"2025-09-03T13:39:18.267Z","avatar_url":"https://github.com/michal34512.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MK_Engine\nThe aim of this project was to create a user-friendly physics engine based on the SFML library.\n\n# Calculating collision response \nEngine uses widely known formula to calculate collision impulse (that is the collision force with is later applied to colliding objects):\n\u003cp align=\"center\"\u003e\n  \u003cimg  src=\"https://github.com/michal34512/MK_Engine/assets/136522993/aa4bd5a5-adce-44b0-8443-06883424a9c9\"\u003e\n\u003c/p\u003e\n\u003cb\u003ee\u003c/b\u003e - greater of the two coefficients of restitution\u003c/br\u003e\n\u003cb\u003eV\u003csup\u003eAB\u003c/sup\u003e\u003c/b\u003e - the difference between velocities of the objects at the point of collision\u003c/br\u003e\n\u003cb\u003emass\u003csup\u003eA\u003c/sup\u003e, mass\u003csup\u003eB\u003c/sup\u003e\u003c/b\u003e - objects masses\u003c/br\u003e\n\u003cb\u003eI\u003csup\u003eA\u003c/sup\u003e, I\u003csup\u003eB\u003c/sup\u003e\u003c/b\u003e - moments of inertia\u003c/br\u003e\n\u003cb\u003er\u003csup\u003eA\u003c/sup\u003e, r\u003csup\u003eB\u003c/sup\u003e\u003c/b\u003e - vectors from the centers of the objects to the point of collision\u003c/br\u003e\n\u003cb\u003et\u003c/b\u003e - collision normal\u003c/br\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg  src=\"https://github.com/michal34512/MK_Engine/assets/136522993/afdc1bd5-5851-4aff-b529-89db5ee0d57a\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Next the collision impulse is being applied to both objects according to the equations:\n  \u003cimg  src=\"https://github.com/michal34512/MK_Engine/assets/136522993/6d2f2177-8c9c-4851-9e69-b0a010282141\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Demo preview:\n  \u003cimg  src=\"https://github.com/michal34512/MK_Engine/assets/136522993/59c0e13e-7b11-4dac-b759-94868d74f969\"\u003e\n\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal34512%2Fmk_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichal34512%2Fmk_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal34512%2Fmk_engine/lists"}