{"id":24266859,"url":"https://github.com/adam-mazur/simple-physics-engine","last_synced_at":"2026-06-01T02:31:32.579Z","repository":{"id":190677193,"uuid":"683135137","full_name":"Adam-Mazur/Simple-physics-engine","owner":"Adam-Mazur","description":"A simple physics engine built with python and openCV implementing object collision.","archived":false,"fork":false,"pushed_at":"2023-08-25T17:29:29.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T12:13:07.892Z","etag":null,"topics":["collision-detection","opencv-python","physics-engine","physics-simulation","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Adam-Mazur.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}},"created_at":"2023-08-25T17:24:51.000Z","updated_at":"2023-10-15T08:01:05.000Z","dependencies_parsed_at":"2023-08-25T23:07:15.115Z","dependency_job_id":null,"html_url":"https://github.com/Adam-Mazur/Simple-physics-engine","commit_stats":null,"previous_names":["adam-mazur/simple-physics-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam-Mazur%2FSimple-physics-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam-Mazur%2FSimple-physics-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam-Mazur%2FSimple-physics-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam-Mazur%2FSimple-physics-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adam-Mazur","download_url":"https://codeload.github.com/Adam-Mazur/Simple-physics-engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950146,"owners_count":20047591,"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":["collision-detection","opencv-python","physics-engine","physics-simulation","python3"],"created_at":"2025-01-15T11:41:54.025Z","updated_at":"2025-12-04T05:11:09.362Z","avatar_url":"https://github.com/Adam-Mazur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nThis is a simple physics engine built using the OpenCV library in Python. The engine simulates the collision between balls and walls, and it also adds a fun twist by animating the color of the balls upon collision.\n# Usage\nTo run a simulation use the `run` function from the `engine.py` file. It takes a list of objects, which are instances of either `Ball` class or `Wall` class, the title, and some animation parameters like screen size etc. \n```py\nfrom engine import run\nrun(\n    objects, \n    \"Animation1\", \n    (height * unit_length, width * unit_length, 3),\n    10.0,\n    120,\n    unit_length,\n)\n```\nYou can create a scene using walls and populate it with moving objects to simulate real world motion.\n# Examples\n### Animation 1\n![Animation 1](sc11.png)\n![Animation 2](sc12.png)\n### Animation 2\n![Animation 2](sc20.png)\n### Animation 3\n![Animation 3](sc31.png)\n![Animation 3](sc32.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-mazur%2Fsimple-physics-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam-mazur%2Fsimple-physics-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-mazur%2Fsimple-physics-engine/lists"}