|
2 | 2 | A simple to setup easy to edit unity fps movement controller using rigidbodies in c#. Feel free to use it if you'd like! |
3 | 3 |
|
4 | 4 | ### Features |
5 | | -- Walking |
6 | | -- Mouse lock |
7 | | -- Sprinting |
8 | | -- Crouching (toggle/hold) (midair/on ground only) |
9 | | -- Jumping |
10 | | -- Labled inspector |
11 | | -- Configurable speeds for crouching, walking, sprinting etc. |
12 | | -- Smoothing of the camera, controlled by the mouse |
13 | | -- Clamped look directions |
14 | | -- No slippery movement |
15 | | -- Slower movement while jumping and extra gravity |
16 | | -- Configurable keys for actions |
17 | | -- Fast auto setup in one button button push |
18 | | - - Creates and sets up rigidbody |
19 | | - - Creates and sets up camera |
20 | | - - Sets gravity to -19 |
| 5 | +- [x] Walking/Sprinting |
| 6 | +- [x] Jumping |
| 7 | +- [x] Mouse lock |
| 8 | +- [x] Crouching |
| 9 | + - [x] Can be configured to be toggle or hold |
| 10 | + - [x] Config to allow to crouch in midair or on ground only |
| 11 | +- [x] Labled inspector |
| 12 | +- [x] Configurable speeds for crouching, walking, sprinting etc. |
| 13 | +- [x] Variable smoothing of the camera, controlled by the mouse |
| 14 | +- [x] Clamped look directions |
| 15 | +- [x] Quick and snappy movement |
| 16 | +- [x] Slower movement while jumping and extra gravity |
| 17 | +- [x] Configurable keys for all actions |
| 18 | +- [x] Fast auto setup in one button button click |
| 19 | + - [x] Creates and sets up rigidbody |
| 20 | + - [x] Creates and sets up camera |
| 21 | + - [x] Sets unity physics gravity to -19 |
| 22 | + - [ ] Ask user if they want to set custom gravity |
| 23 | + - [ ] Create floor plane for character to stand on |
| 24 | + |
21 | 25 |
|
22 | 26 | ### Controls |
23 | 27 | This script is currently setup with the following controls. |
24 | 28 | These are all configurabe in the editor (don't require coding) |
25 | 29 |
|
26 | 30 | | Key(s) | Action | |
27 | 31 | | ------ | ------ | |
28 | | -| WSAD | Simple movement | |
| 32 | +| WSAD | Simple character movement | |
29 | 33 | | Space | Jump | |
30 | | -| Z | Crouch | |
31 | | -| Q | Lock/Unlock Mouse | |
| 34 | +| Z | Crouch (CTRL in editor runs hotkeys) | |
| 35 | +| Q | Lock/Unlock Mouse (For in editor changes)| |
32 | 36 |
|
33 | 37 | ### How to setup the character |
34 | 38 |
|
|
0 commit comments