Code for use in Unity Engine! Here you will find code for character controllers and other useful code snippets. Updated periodically.
-
Basic Character Controller - Player controller for top-down games.
-
Third-Person Character Controller - Third-person player controller. Includes movement and jumping. Assumes the use of Cinemachine Free-Look Camera.
-
First-Person Character Controller - First-Person player controller. Includes movement, camera movement, and jumping.
-
Player Jump - Provides a jump mechanic. Attach separately to Player objects.
-
Legacy Character Controller - Character controller using Unity's Legacy Input system. Not recommended - use the Basic Character Controller instead. Contains comments detailing each line of code.
-
Vehicle Controller - Player controller for car-like vehicles.
-
Spaceship/Plane Controller - Player controller for spaceship or planes.
-
Tri-Planar Shader - A basic Tri-Planar shader. Useful for adding textures to objects while ignoring their existing uv coordinates.