Skip to content

atil/fpscontroller

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

- Clean up scripts, merge some into the main script so that it's more concise
- Upgrade the project to 2021.3.17
- Remove unused SFX assets
- Update .unitypackage file
2cfb4c7

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

First Person Controller for Unity

This Q3-inspired first person controller is made with two goals in mind:

  • Arcade feeling facilitates strafejumping / bunnyhopping, allowing easy-to-play-hard-to-master movement. It uses similar movement logic used in quake / halflife games to achieve oldschool feel.

  • Avoid using CharacterController and make every step of the logic as transparent as possible.

Quick start:

  • Unpack the package

  • Add a layer "PlayerCollider" and set the player's collider to be on that layer

  • Add that layer to FpsController.ExcludedLayers on the prefab. Collision and grounded checks will ignore these layers

References:

Quake3-movement-unity

Quake3 source

Half Life 1 SDK source

Bunnyhopping from the Programmer's Perspective

Releases

No releases published

Packages

No packages published

Languages