{"id":17004855,"url":"https://github.com/clickermonkey/priori","last_synced_at":"2025-09-09T18:53:54.282Z","repository":{"id":152212189,"uuid":"134353681","full_name":"ClickerMonkey/Priori","owner":"ClickerMonkey","description":"A collision pre-detection library for fast moving 2d shapes in Java.","archived":false,"fork":false,"pushed_at":"2018-05-22T03:31:02.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T10:40:42.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/ClickerMonkey.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}},"created_at":"2018-05-22T03:10:05.000Z","updated_at":"2018-05-22T03:31:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d97f0e4-d5ab-41e8-8caf-946e5ce45a74","html_url":"https://github.com/ClickerMonkey/Priori","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ClickerMonkey/Priori","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FPriori","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FPriori/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FPriori/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FPriori/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClickerMonkey","download_url":"https://codeload.github.com/ClickerMonkey/Priori/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickerMonkey%2FPriori/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274343368,"owners_count":25267897,"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-09T02:00:10.223Z","response_time":80,"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":[],"created_at":"2024-10-14T04:44:37.749Z","updated_at":"2025-09-09T18:53:54.270Z","avatar_url":"https://github.com/ClickerMonkey.png","language":"Java","readme":"# Priori\nA collision pre-detection library for fast moving 2d shapes in Java.\n\nA common problem in games with collision detection is dealing with fast moving objects. \nFast moving objects can skip over important collisions with other objects - or corners. \n\nPriori solves this problem by detection collisions before they occur. \nPriori is given the state of a physics simulation with the start and end positions of every moving object. \nIt handles all potential intersections one at a time until all intersections are properly resolved and every object is moved to its end position.\n\nPriori is also capable of estimating what time two objects will collide - independent of the current frame. \nIntersections store the collision, normal, contact point, and the time of intersection relative to the starting and ending positions of the two shapes.\n\nPriori supports the following:\n- Circle\n- Axis-aligned rectangle\n- Non-rotating plane\n- Restitution (bounciness)\n- Friction\n\nPriori at the moment does *not* support the following:\n- Rotating objects\n- Polygons\n- Line segments\n\nPriori comes with a brute-force broad phase algorithm - but any spatial algorithm can be provided for finding potential collisions between shapes.\n\nThe project comes with two examples. One a breakout clone and the other is just a set of fast moving bouncing balls that stay on the screen.\n\n![Breakout](images/Priori_Breakout.png)\n\n![BallPit](images/Priori_BallPit.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickermonkey%2Fpriori","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclickermonkey%2Fpriori","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickermonkey%2Fpriori/lists"}