FP Controller by nupsi - 1

Games & ProjectsInputs

Simple rigidbody first person controller and input manager for Unity game engine.

Unknown VersionMIT LicenseUpdated 319 days agoCreated on November 23rd, 2018
Go to source


Simple First Person Rigidbody Controller and input manager for Unity Game Engine.
Controller provides basic first person controls using rigidbody and input managers allows binding functions to keys inside the editor.

Made in Unity 2017.4.28f1


Download the latest unity package from releases.
Package contains example scene and scripts for the controller and the input manager.

First Person Controller

Uses rigidbody and capsule collider with physics material to form a first person controller. Controller contains preset defining each property of the controller.

alt text
Window for creating First Person Controller.

alt text
Inspector for preset containing controllers properties.

Input Manager / Input Event

Binds public functions to keyboard events. One event contains scriptable keybind and keyboard events that are called. Single keyboard event can contain one or more functions.
Once the game start Input Event registers its events to a input manager. If there is no reference to a dedicated input manager the input event adds one to its game object. Dedicated input managers can be used to control differend inputs by activating and deactivating required managers.
Scriptable keybind can contain one or more primary key codes and multiple combination key codes. Single primary key and all the combination keys are required to trigger a event.

alt text
Inspector for input event.

alt text
Scriptable Keybind for input event.

alt text
Example of Input Event binding Jump to Space.


Simple Class Diagrams

alt text

alt text
First Person Controller

alt text
Input Event

Show all projects by nupsi