GithubHelp home page GithubHelp logo

igaryhe / firstpersondrifter Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 0.0 206 KB

Dead simple first-person character controller for Unity3D.

License: BSD 3-Clause "New" or "Revised" License

C# 100.00%

firstpersondrifter's Introduction

First Person Drifter

Dead simple first person character controller for Unity3D.

Originally compiled by @torahhorse and maintained by @jackaperkins. This version substitutes UnityEngine.Input with UnityEngine.InputSystem, also made it compatible with package manager.

Features

First person drifter improves on Unity's default first person controller in a few ways:

  • Smooths mouse input
  • Adds optional run mode, air control, sliding on slopes
  • Adds head bob to camera
  • Adds mouse lock (and unlock with ESC)

It also comes with some optional stuffs:

  • Camera fade in
  • Right click zoom (good for looking at art and shit)
  • Script for resetting player if they fall below a certain height
  • Footstep sound (built-in sounds made by @kirozwj)
  • Pause menu that handles:
    • Quit game
    • Field of view
    • Sensitivity
    • Invert mouse y axis

This package also has controller support built-in.

How To Use

  • Drop the Player prefab into a scene and delete the default Main Camera
  • If you don't want any optional stuff, use the PlayerVanilla prefab
  • If you want to allow the player to run, simply tick the Enable Running in the First Person Drifter component.
  • If you want to use the pause menu, drag the Menu prefab into you scene. Make sure to create a Canvas in advance, and convert the EventSystem into using the new Input System.
  • Disable the FadeIn in Menu if you don't want the fade in animation at the beginning.

firstpersondrifter's People

Contributors

igaryhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.