{"id":20763526,"url":"https://github.com/openfl/box2d","last_synced_at":"2026-03-14T02:31:22.784Z","repository":{"id":2248660,"uuid":"3203550","full_name":"openfl/box2d","owner":"openfl","description":"Haxe port of Box2D, a popular rigid-body 2D physics engine","archived":false,"fork":false,"pushed_at":"2024-09-03T23:01:30.000Z","size":328,"stargazers_count":96,"open_issues_count":9,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-30T00:54:59.295Z","etag":null,"topics":["box2d","haxe","openfl","physics","physics-engine"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-01-17T21:47:41.000Z","updated_at":"2024-10-09T16:27:26.000Z","dependencies_parsed_at":"2023-10-16T04:22:48.457Z","dependency_job_id":"db819d3b-e7c6-4bd6-aff9-e4e76314a3d4","html_url":"https://github.com/openfl/box2d","commit_stats":{"total_commits":68,"total_committers":14,"mean_commits":4.857142857142857,"dds":0.5294117647058824,"last_synced_commit":"be147f81027ec660aa94272f5258e98f77adfed1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fbox2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fbox2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fbox2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fbox2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfl","download_url":"https://codeload.github.com/openfl/box2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242498368,"owners_count":20138782,"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":["box2d","haxe","openfl","physics","physics-engine"],"created_at":"2024-11-17T10:44:34.844Z","updated_at":"2025-12-24T03:35:20.556Z","avatar_url":"https://github.com/openfl.png","language":"Haxe","readme":"[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE.md) [![Haxelib Version](https://img.shields.io/github/tag/openfl/box2d.svg?style=flat\u0026label=haxelib)](http://lib.haxe.org/p/box2d)\n\nBox2D\n=====\n\nThe Box2D rigid-body 2D physics engine, ported to Haxe from the Box2DFlash port by Boris the Brave.\n\nThe syntax has been updated to follow the standard Haxe convention, for example:\n\n**ActionScript**\n\n```as3\nvar world:b2World = new b2World (new b2Vec2 (0, 10.0), true);\nvar worldScale:int = 30;\n    \nvar body:b2BodyDef = new b2BodyDef ();\nbody.position.Set (250 / worldScale, 200 / worldScale);\nbody.type = b2Body.b2_dynamicBody;\n  \t\nvar circle:b2CircleShape = new b2CircleShape (10 / worldScale);\nvar fixture:b2FixtureDef = new b2FixtureDef ();\nfixture.shape = circle;\n  \t\nplayer = world.CreateBody (body);\nplayer.CreateFixture (fixture);\n```\n\nThe above ActionScript code would be written like this in Haxe:\n\n**Haxe**\n\n```haxe\nvar world = new B2World (new B2Vec2 (0, 10.0), true);\nvar worldScale = 30;\n    \nvar body = new B2BodyDef ();\nbody.position.set (250 / worldScale, 200 / worldScale);\nbody.type = DYNAMIC_BODY;\n    \nvar circle = new B2CircleShape (10 / worldScale);\nvar fixture = new B2FixtureDef ();\nfixture.shape = circle;\n    \nplayer = world.createBody (body);\nplayer.createFixture (fixture);\n```\n\nInstallation\n============\n\nYou can easily install Box2D using haxelib:\n\n    haxelib install box2d\n\nTo add it to a Lime or OpenFL project, add this to your project file:\n\n    \u003chaxelib name=\"box2d\" /\u003e\n\n\nDevelopment Builds\n==================\n\nClone the Box2D repository:\n\n    git clone https://github.com/openfl/box2d\n\nTell haxelib where your development copy of Box2D is installed:\n\n    haxelib dev box2d box2d\n\nTo return to release builds:\n\n    haxelib dev box2d\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfl%2Fbox2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfl%2Fbox2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfl%2Fbox2d/lists"}