{"id":13663410,"url":"https://github.com/jeffvella/UnityNativeCollision","last_synced_at":"2025-04-25T17:30:42.076Z","repository":{"id":41676401,"uuid":"171687712","full_name":"jeffvella/UnityNativeCollision","owner":"jeffvella","description":"SAT Collision in C# for Unity3D Burst Compiler","archived":false,"fork":false,"pushed_at":"2019-05-01T13:11:20.000Z","size":350,"stargazers_count":264,"open_issues_count":2,"forks_count":44,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-10T20:37:21.306Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffvella.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-20T14:26:09.000Z","updated_at":"2024-11-01T07:37:38.000Z","dependencies_parsed_at":"2022-09-11T01:51:22.565Z","dependency_job_id":null,"html_url":"https://github.com/jeffvella/UnityNativeCollision","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/jeffvella%2FUnityNativeCollision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffvella%2FUnityNativeCollision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffvella%2FUnityNativeCollision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffvella%2FUnityNativeCollision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffvella","download_url":"https://codeload.github.com/jeffvella/UnityNativeCollision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250861924,"owners_count":21499185,"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-08-02T05:02:26.892Z","updated_at":"2025-04-25T17:30:41.710Z","avatar_url":"https://github.com/jeffvella.png","language":"C#","readme":"# UnityNativeCollision #\n\nThis project is an experimental C# implementation of polyhedron SAT collision and intersection for the Unity game engine. It's specifically designed to be compatible with Unity's Burst Compiler for performance. \n\n##### Acknowledgments:\nThe math is ported to C# from the C++ BounceLite project by Irlan Robson (zLib License) and adapted for Unity's new Math library and Burst Compiler requirments: https://github.com/irlanrobson/bounce_lite \n\nThe SAT implementation is originally based on the 2013 GDC presentation by Dirk Gregorius and his forum posts about Valve's Rubikon physics engine:\n * https://www.gdcvault.com/play/1017646/Physics-for-Game-Programmers-The\n * https://www.gamedev.net/forums/topic/692141-collision-detection-why-gjk/?do=findComment\u0026comment=5356490 \n * http://www.gamedev.net/topic/667499-3d-sat-problem/ \n\n##### Features:\n\n* Generation of native half-edge mesh from Unity Meshes.\n* Fast convex polyhedron face/edge boolean collision detection.\n* Polyhedron intersection manifold generation (via Sutherland-Hodgman clipping)\n* Burst compiled jobs for single and batch collision operations.\n* Experimental bounding volume hierarchy.\n* NativeBuffer\u003cT\u003e collection able to run off stackalloc.\n\n\u003cimg src=\"https://i.imgur.com/2r6IAtB.gif\" target=\"_blank\" /\u003e\n\nNote: Project was created with Unity 2019.2, older versions may not work.\n\n##### Performance:\n\n\u003cimg src=\"https://i.imgur.com/mfPtfYv.jpg\" target=\"_blank\" /\u003e\n\n##### Contact Visualization:\n\nView a fast version of the contact for physics calcluations. This mode a processes a minimal set of geometry, just enough to move colliding objects apart. Versus the full intersection mode, which needs to clip every face for visual/mesh creation purposes.\n\n\u003cimg src=\"https://i.imgur.com/gj2kGu0.gif\" target=\"_blank\" /\u003e\n","funding_links":[],"categories":["Open Source Repositories","C\\#"],"sub_categories":["Physic"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffvella%2FUnityNativeCollision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffvella%2FUnityNativeCollision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffvella%2FUnityNativeCollision/lists"}