├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── LICENSE ├── index.html ├── package.json ├── public ├── island_fbx_gltf.glb ├── jungle-merged.glb └── mushroom-boi.glb ├── src ├── app.css ├── app.tsx ├── camera │ ├── camera-controller.tsx │ └── stores │ │ └── camera-store.ts ├── character │ ├── bounding-volume │ │ ├── use-bounding-volume.ts │ │ └── volume-debug.tsx │ ├── character-controller.tsx │ ├── contexts │ │ └── character-controller-context.ts │ ├── machines │ │ └── movement-machine.ts │ ├── modifiers │ │ ├── air-collision.ts │ │ ├── falling.ts │ │ ├── gravity.ts │ │ ├── jump.ts │ │ ├── use-modifiers.ts │ │ └── walking.ts │ └── stores │ │ └── character-store.ts ├── collider │ ├── SimplifyModifier.js │ ├── collider.tsx │ └── stores │ │ └── collider-store.tsx ├── index.css ├── input │ ├── input-controller.tsx │ └── input-system.tsx ├── main.tsx ├── player │ └── player-controller.tsx ├── test-assets │ ├── fauna.tsx │ ├── low-poly-island.tsx │ ├── mushroom-boi.tsx │ ├── player.tsx │ ├── simple-plane.tsx │ ├── space.tsx │ ├── terrain.tsx │ └── test-extension-terrain.tsx ├── utilities │ ├── quatDamp.ts │ ├── unity.ts │ ├── use-box-debug.ts │ ├── use-line-debug.ts │ └── use-measure.tsx └── vite-env.d.ts ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/LICENSE -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/package.json -------------------------------------------------------------------------------- /public/island_fbx_gltf.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/public/island_fbx_gltf.glb -------------------------------------------------------------------------------- /public/jungle-merged.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/public/jungle-merged.glb -------------------------------------------------------------------------------- /public/mushroom-boi.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/public/mushroom-boi.glb -------------------------------------------------------------------------------- /src/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/app.css -------------------------------------------------------------------------------- /src/app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/app.tsx -------------------------------------------------------------------------------- /src/camera/camera-controller.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/camera/camera-controller.tsx -------------------------------------------------------------------------------- /src/camera/stores/camera-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/camera/stores/camera-store.ts -------------------------------------------------------------------------------- /src/character/bounding-volume/use-bounding-volume.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/bounding-volume/use-bounding-volume.ts -------------------------------------------------------------------------------- /src/character/bounding-volume/volume-debug.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/bounding-volume/volume-debug.tsx -------------------------------------------------------------------------------- /src/character/character-controller.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/character-controller.tsx -------------------------------------------------------------------------------- /src/character/contexts/character-controller-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/contexts/character-controller-context.ts -------------------------------------------------------------------------------- /src/character/machines/movement-machine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/machines/movement-machine.ts -------------------------------------------------------------------------------- /src/character/modifiers/air-collision.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/air-collision.ts -------------------------------------------------------------------------------- /src/character/modifiers/falling.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/falling.ts -------------------------------------------------------------------------------- /src/character/modifiers/gravity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/gravity.ts -------------------------------------------------------------------------------- /src/character/modifiers/jump.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/jump.ts -------------------------------------------------------------------------------- /src/character/modifiers/use-modifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/use-modifiers.ts -------------------------------------------------------------------------------- /src/character/modifiers/walking.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/modifiers/walking.ts -------------------------------------------------------------------------------- /src/character/stores/character-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/character/stores/character-store.ts -------------------------------------------------------------------------------- /src/collider/SimplifyModifier.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/collider/SimplifyModifier.js -------------------------------------------------------------------------------- /src/collider/collider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/collider/collider.tsx -------------------------------------------------------------------------------- /src/collider/stores/collider-store.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/collider/stores/collider-store.tsx -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/index.css -------------------------------------------------------------------------------- /src/input/input-controller.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/input/input-controller.tsx -------------------------------------------------------------------------------- /src/input/input-system.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/input/input-system.tsx -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/player/player-controller.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/player/player-controller.tsx -------------------------------------------------------------------------------- /src/test-assets/fauna.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/fauna.tsx -------------------------------------------------------------------------------- /src/test-assets/low-poly-island.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/low-poly-island.tsx -------------------------------------------------------------------------------- /src/test-assets/mushroom-boi.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/mushroom-boi.tsx -------------------------------------------------------------------------------- /src/test-assets/player.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/player.tsx -------------------------------------------------------------------------------- /src/test-assets/simple-plane.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/simple-plane.tsx -------------------------------------------------------------------------------- /src/test-assets/space.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/space.tsx -------------------------------------------------------------------------------- /src/test-assets/terrain.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/terrain.tsx -------------------------------------------------------------------------------- /src/test-assets/test-extension-terrain.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/test-assets/test-extension-terrain.tsx -------------------------------------------------------------------------------- /src/utilities/quatDamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/utilities/quatDamp.ts -------------------------------------------------------------------------------- /src/utilities/unity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/utilities/unity.ts -------------------------------------------------------------------------------- /src/utilities/use-box-debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/utilities/use-box-debug.ts -------------------------------------------------------------------------------- /src/utilities/use-line-debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/utilities/use-line-debug.ts -------------------------------------------------------------------------------- /src/utilities/use-measure.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/src/utilities/use-measure.tsx -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krispya/r3f-character-controller/HEAD/vite.config.ts --------------------------------------------------------------------------------