A simple, easy-to-setup FPS controller for Unity 3D, built on Unity's Character Controller component.
- Input System package
- Character Controller-based movement
- Quick and easy setup
- Compatible with Domaing Reloading and Scene Reloading being disabled
- Customizable speeds for:
- Walking
- Sprinting
- Crouching
- Two headbob styles (both equipped with event used for footsteps):
- Simple - a basic sway effect driven by trigonometric functions
- Realistic - velocity-driven sway with lateral movement and roll
- Full Input System integration - just drag and drop your actions
- Clean, easy-to-use API
- Install via UPM git URL
https://github.com/Zbajnek/urp-fps-controller.git?path=Packages/FPSController
- Install the package
- Create the player with the following hierarchy
Alternatively, use the Player prefab included with the package.
Player └── Head └── MainCamera - Attach
PlayerController.csandPlayerLook.csscripts to the Player object. - Add the required references, and you're good to go!
The package is under the MIT license. See LICENSE for details.