Creating A 2.5D Character Controller In Unity

Today I’m creating a custom player controller which will handle movement, gravity and jumping.

Today’s Objective: Create a custom character controller to handle movement, gravity and jumping.

The Code:

In a new script I’ve called “PlayerController”, I create the movement variables which will control how the player can move:

Then add the functionality:

Get startup references
Calculate player velocity
Apply player velocity
Leave-ground/touch-ground event methods

A simple player controller which I will be expanding on in future posts.

--

--

--

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Authoring a language runner for Gauge

Solving the 1D Advection Equation — PyCUDA Implementation

Hands on APIs using Postman

Leetcode 295. Find Median from Data Stream

Azure Automation Configuring Desired State Configuration

Too much deprecated information online!

Scaling Agile Series Part 1: Can you Scale Agility?

Building Web Apps : Getting you started

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vincent Taylor

Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

More from Medium

Animating Sprites in Unity

Creating An Advanced 2D Player Controller Without Any Unity Components! (Part 2)

Mastering Unity Scripting | Summary — Chapter 1: Unity C# Refresher

Zoo Cards as Scriptable Objects