Skip to content

Commit

Permalink
/ᐠ。ꞈ。ᐟ\ ᑋᵉᑊᑊᵒ ᵕ̈
Browse files Browse the repository at this point in the history
  • Loading branch information
armomu committed Sep 20, 2023
1 parent 6db2062 commit c0532ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@
![version](https://img.shields.io/badge/Havok-1.x-blue.svg)
![version](https://img.shields.io/badge/Vite-4.x-green.svg)

### 这是一个使用 Babylon.js6 的简单物理角色控制器演示
### This is a simple Havok physics character controller demo using Babylon.js 6

原理很简单,使用物理线性移动角色
## 功能
- ✅ Havok 物理引擎
原理很简单,使用物理线性移动角色, 使用 WSAD 和 space 键控制角色
The principle is very simple, use physics to move the character linearly, Control character using WSAD and space keys
#### Online Demo [https://armomu.github.io/babylonjs-character-generator/](https://armomu.github.io/babylonjs-character-generator/)

## TODO
- ✅ Havok Physics engine 物理引擎
- ✅ WASD 键控制行走
- ✅ Space 空格键跳跃
- ✅ 高处掉落
- ❌ 上下楼梯
- ❌ 上下坡(会滑落)
- ✅ Space Jump 空格键跳跃
- ✅ Falling 高处落下
- ❌ Climb stairs 上下楼梯
- ❌ Uphill and downhill 上坡下坡
- ❌ mobile device 兼容移动设备

## 截图

<img width="50%" src="https://github.com/armomu/babylonjs-character-generator/raw/master/public/094246.png">
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/tsconfig": "^0.1.3",
"@vuetify/loader-shared": "^1.7.1",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"npm-run-all": "^4.1.5",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import vuetify from 'vite-plugin-vuetify';

// https://vitejs.dev/config/
export default defineConfig({
base: '/coconut',
base: '/babylonjs-character-generator',
plugins: [vue(), vuetify() as any, vueJsx()],
server: {
open: false,
Expand Down

0 comments on commit c0532ff

Please sign in to comment.