{"id":15061055,"url":"https://github.com/samme/phaser-plugin-debug-arcade-physics","last_synced_at":"2025-04-10T06:36:34.368Z","repository":{"id":57322871,"uuid":"63381288","full_name":"samme/phaser-plugin-debug-arcade-physics","owner":"samme","description":"Draws properties of Arcade Physics bodies. Phaser 2/CE","archived":false,"fork":false,"pushed_at":"2019-06-25T18:16:05.000Z","size":1178,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T09:28:01.414Z","etag":null,"topics":["phaser","phaser-arcade-physics","phaser-plugin"],"latest_commit_sha":null,"homepage":"https://samme.github.io/phaser-plugin-debug-arcade-physics/","language":"CoffeeScript","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/samme.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}},"created_at":"2016-07-15T01:25:17.000Z","updated_at":"2024-05-29T11:15:37.000Z","dependencies_parsed_at":"2022-09-10T16:52:02.582Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-plugin-debug-arcade-physics","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-arcade-physics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-arcade-physics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-arcade-physics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-plugin-debug-arcade-physics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-plugin-debug-arcade-physics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248170682,"owners_count":21059231,"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":["phaser","phaser-arcade-physics","phaser-plugin"],"created_at":"2024-09-24T23:08:39.030Z","updated_at":"2025-04-10T06:36:34.300Z","avatar_url":"https://github.com/samme.png","language":"CoffeeScript","readme":"Draws properties of Arcade Physics bodies. [Demo](https://samme.github.io/phaser-plugin-debug-arcade-physics/)\n\n![Screenshot](https://samme.github.io/phaser-plugin-debug-arcade-physics/screenshot.png)\n\nInstall\n-------\n\n    npm install -S phaser-plugin-debug-arcade-physics\n\nor\n\n    bower install -S samme/phaser-plugin-debug-arcade-physics\n\nor add [DebugArcadePhysics.js](dist/DebugArcadePhysics.js) after phaser.js.\n\nUse 🚀\n---\n\n```javascript\ngame.plugins.add(Phaser.Plugin.DebugArcadePhysics);\n// OR\ngame.plugins.add(Phaser.Plugin.DebugArcadePhysics, {\n    // options … (see Configure, below)\n});\n```\n\n### Configure\n\nYou can try these in the [demo](https://samme.github.io/phaser-plugin-debug-arcade-physics/).\n\n```javascript\ngame.debug.arcade.configSet({ // default values:\n    bodyFilled:                false,\n    filter:                    null ,\n    lineWidth:                 1    ,\n    on:                        true ,\n    renderAcceleration:        true ,\n    renderAngularAcceleration: true ,\n    renderAngularDrag:         true ,\n    renderAngularVelocity:     true ,\n    renderBlocked:             true ,\n    renderBody:                true ,\n    renderBodyDisabled:        true ,\n    renderCenter:              true ,\n    renderConfig:              false,\n    renderDrag:                true ,\n    renderFriction:            true ,\n    renderLegend:              true ,\n    renderMaxVelocity:         true ,\n    renderOffset:              true ,\n    renderRotation:            true ,\n    renderSpeed:               true ,\n    renderTouching:            true ,\n    renderVelocity:            true ,\n}); // -\u003e see console for values\n```\n\n### Filters\n\nSome filters are included:\n - `exists`\n - `isAlive`\n - `isBullet`\n - `isNotBullet`\n - `isNotParticle`\n - `isNotSprite`\n - `isParticle`\n - `isSprite`\n\n```javascript\n// Example:\n// Hide bodies of objects w/ exists=false (Phaser ignores these, but doesn't disable them)\ngame.debug.arcade.configSet({\n    filter: Phaser.Plugin.DebugArcadePhysics.exists\n});\n\n// Example:\n// Keep automatic rendering 'on' but limit to Bullets\ngame.debug.arcade.configSet({\n    filter: Phaser.Plugin.DebugArcadePhysics.isBullet\n});\n\n// Example:\n// Keep automatic rendering 'on' but limit to certain objects:\ngame.debug.arcade.configSet({\n  filter: function (obj) { return obj.name === \"player\" }\n});\n```\n\n### Special uses\n\n```javascript\n// Turn automatic rendering off\ngame.debug.arcade.off()\n\n// Draw just one body\ngame.debug.arcade.renderObj(player);\n\n// Draw one property of one body\ngame.debug.arcade.renderVelocity(player);\n```\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-arcade-physics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-plugin-debug-arcade-physics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-plugin-debug-arcade-physics/lists"}