FP Controller by nupsi - 1

Games & ProjectsInputs

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

MIT LicenseUpdated 75 days agoCreated on November 23rd, 2018


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.3.0f3


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 main and secondary (combination) key code 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.

alt text
Inspector 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