{"id":21327015,"url":"https://github.com/coderosh/heaxjs","last_synced_at":"2025-07-12T07:31:07.411Z","repository":{"id":46013694,"uuid":"343061424","full_name":"coderosh/heaxjs","owner":"coderosh","description":"Verlet physics engine written in javascript","archived":false,"fork":false,"pushed_at":"2021-11-20T13:39:07.000Z","size":459,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T09:40:19.236Z","etag":null,"topics":["verlet","verlet-integration","verletjs"],"latest_commit_sha":null,"homepage":"https://heax.js.org/","language":"TypeScript","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/coderosh.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}},"created_at":"2021-02-28T09:02:05.000Z","updated_at":"2023-03-08T23:25:12.000Z","dependencies_parsed_at":"2022-09-26T16:21:12.918Z","dependency_job_id":null,"html_url":"https://github.com/coderosh/heaxjs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderosh%2Fheaxjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderosh%2Fheaxjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderosh%2Fheaxjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderosh%2Fheaxjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderosh","download_url":"https://codeload.github.com/coderosh/heaxjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225433486,"owners_count":17473599,"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":["verlet","verlet-integration","verletjs"],"created_at":"2024-11-21T21:12:50.890Z","updated_at":"2024-11-21T21:12:51.507Z","avatar_url":"https://github.com/coderosh.png","language":"TypeScript","readme":"# Heax\n\n\u003e Verlet physics engine written in javascript.\n\n## Installation\n\n```bash\nnpm install heax\n```\n\n## Usage\n\nExamples: [https://heax.js.org/examples](https://heax.js.org/examples)\n\n```js\nimport { Heax, Composite } from \"heax\";\n\nconst canvas = document.querySelector(\"canvas\");\n\nconst heax = new Heax(canvas);\n\nheax.createRope();\nheax.createRectangle();\n\n// create custom shape\nconst square = new Composite(heax);\nsquare.addParticle(100, 100, 100, 100);\nsquare.addParticle(200, 100, 200, 100);\nsquare.addParticle(200, 200, 200, 200);\nsquare.addParticle(100, 200, 100, 200);\n\nsquare.addConstraint(0, 1);\nsquare.addConstraint(1, 2);\nsquare.addConstraint(2, 3);\nsquare.addConstraint(3, 0);\nsquare.addConstraint(1, 2);\nsquare.addConstraint(0, 3);\n\nheax.composites.push(square);\n\n(function update() {\n  heax.clear();\n  heax.update();\n  heax.render();\n  heax.mouse.drag();\n\n  requireAnimationFrame(update);\n})();\n```\n\n\u003e For complete api documentation visit [https://heax.js.org](https://heax.js.org)\n\n## Using cdn\n\n```html\n\u003cscript src=\"https://unpkg.com/heax\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  const { Heax, Composite, Particle } = HeaxVerlet;\n\u003c/script\u003e\n```\n\n### License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderosh%2Fheaxjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderosh%2Fheaxjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderosh%2Fheaxjs/lists"}