{"id":13574016,"url":"https://github.com/armomu/ergoudan","last_synced_at":"2025-04-04T13:30:51.814Z","repository":{"id":39436368,"uuid":"139664518","full_name":"armomu/ergoudan","owner":"armomu","description":"使用 Babylon.js 6 的 Havok 物理角色控制器 Havok physics character controller using Babylon.js 6","archived":false,"fork":false,"pushed_at":"2024-03-15T09:27:30.000Z","size":33551,"stargazers_count":39,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-03-16T09:27:23.838Z","etag":null,"topics":["babylonjs","babylonjs-character-controller","babylonjs-game","physics-character-controller","third-person-controller"],"latest_commit_sha":null,"homepage":"https://armomu.github.io/ergoudan/","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/armomu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-04T03:36:01.000Z","updated_at":"2024-05-28T05:17:23.226Z","dependencies_parsed_at":"2023-12-18T02:30:50.869Z","dependency_job_id":"91590b17-c8fe-4e56-95be-14109314e966","html_url":"https://github.com/armomu/ergoudan","commit_stats":null,"previous_names":["jaywoow/min-program-demo","armomu/min-program-demo","armomu/babylonjs-character-generator","armomu/ergoudan"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armomu%2Fergoudan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armomu%2Fergoudan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armomu%2Fergoudan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armomu%2Fergoudan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armomu","download_url":"https://codeload.github.com/armomu/ergoudan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247184918,"owners_count":20897855,"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":["babylonjs","babylonjs-character-controller","babylonjs-game","physics-character-controller","third-person-controller"],"created_at":"2024-08-01T15:00:45.139Z","updated_at":"2025-04-04T13:30:49.183Z","avatar_url":"https://github.com/armomu.png","language":"TypeScript","funding_links":[],"categories":["Projects"],"sub_categories":[],"readme":"# Ergoudan\n\n### This is a simple Havok physics character controller demo using Babylon.js 6、7\n\n原理很简单，使用 Havok 物理线性移动控制角色\n\nThe principle is very simple, use havok physics to move the character linearly, Control character using WSAD and space keys\n\n## Screenshot\n\n\u003cimg width=\"50%\" src=\"https://github.com/armomu/ergoudan/raw/master/public/094246.png\"\u003e\n\n## Online Demo \n\n[https://armomu.github.io/ergoudan/](https://armomu.github.io/ergoudan/)\n\n[https://daisy-kaliman.vercel.app/#/index](https://daisy-kaliman.vercel.app/#/index)\n\n## Use it\n\n#### Clone the project and run it directly locally\n\n```\ngit clone https://github.com/armomu/ergoudan.git\n\ncd ergoudan\n\npnpm install\n\npnpm run dev\n```\n\n#### Use in your project\n\nCopy `src/views/serves/thirdPersonController.ts` and `public/textures/x-bot.glb` to your project directory\n\nChange file path\n\n```typescript\n// thirdPersonController.ts\n// 503 line\n\n/**\n * Load a scene into an asset container\n * @param rootUrl a string that defines the root url for the scene and resources or the concatenation of rootURL and filename (e.g. http://example.com/test.glb)\n * @param sceneFilename a string that defines the name of the scene file or starts with \"data:\" following by the stringified version of the scene or a File object (default: empty string)\n * @param scene is the instance of BABYLON.Scene to append to (default: last created scene)\n * ...omit\n * @returns The loaded plugin\n */\nBABYLON.SceneLoader.LoadAssetContainer(\n    import.meta.env.BASE_URL + rootUrl, // Output /ergoudan/textures/ Change to your `ENV BASE_URL` directory\n    sceneFilename // Output x-bot.glb\n);\n```\n\nUse\n\n```typescript\nimport { ThirdPersonController } from './thirdPersonController';\n\nnew ThirdPersonController(camera, scene);\n```\n\n## Parameter\n\n\u003e package.json dependencies `@babylonjs/havok: 1.1.4` Required\n\n```typescript\n\nexport class ThirdPersonController {\n    /**\n     * Creates a new ThirdPersonController\n     * @param camera Required BABYLON.ArcRotateCamera\n     * @param scene Required BABYLON.Scene\n     */\n    constructor(camera: BABYLON.ArcRotateCamera, scene: BABYLON.Scene) {\n    }\n\n}\n\n```\n\n| Methods                         | desc                    |\n| ------------------------------- | ----------------------- |\n| dispose() | Destroy the current character controller |\n\n## TODO\n\n-   ✅ Havok Physics engine\n-   ✅ Contrl character using WASD\n-   ✅ Jump\n-   ✅ Climb stairs\n-   ✅ Uphill and downhill\n-   ❌ First person control\n-   ❌ Mobile device\n-   ❌ Npm package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmomu%2Fergoudan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmomu%2Fergoudan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmomu%2Fergoudan/lists"}