Loading video...

Video Failed to Load

Go Home

Making a simple but comprehensive character controller for Unity which can be a hurdle for a lot of people starting out. Handles slopes, stairs, platforms that move, rotate, and stretch. I'll put it in a public repo when its all finished. #GameDev #IndieDev #ScreenShotSaturday

82,134 views • 4 months ago •via X (Twitter)

30 Comments

StartledSeal's profile picture
StartledSeal4 months ago

@AIJC_nagahira Cool!!! I did that too :3

Mike V's profile picture
Mike V4 months ago

I started by distilling down the character controller for @ProdeusGame , which I think is pretty good, and have found some improvements that I can bring back to Prodeus when finished.

Mooncast Productions's profile picture
Mooncast Productions4 months ago

Most people start by using Update instead of FixedUpdate. What follows is a river of tears.

Mike V's profile picture
Mike V4 months ago

Everything is happening in Update. ; )

Mooncast Productions's profile picture
Mooncast Productions4 months ago

Dude. GL with that. When the fps gets really high or really low, it will always break.

Mick Mangles's profile picture
Mick Mangles4 months ago

amogos

Pashinin Anton's profile picture
Pashinin Anton4 months ago

Cool. Also pushing objects around would be nice too.

Tiago Franco's profile picture
Tiago Franco4 months ago

As someone who can't code but wants to prototype a few ideias on my own, this looks like the perfect starting point, looking forward to it!

EVANGELIST: NOIRe's profile picture
EVANGELIST: NOIRe4 months ago

Great work keep it up

EveryDay's profile picture
EveryDay4 months ago

Amogus

Philippe Tremblay's profile picture
Philippe Tremblay4 months ago

I've seen better games. (ok, I'm just kidding)

Movesia's profile picture
Movesia4 months ago

the rigidbody approach for slopes and stairs is always the right call, kinematic gets messy fast. can't wait to see the repo 😛

EGrane➡️Wishlist Gatto's Pizzeria -ガット・ピッツェリア's profile picture
EGrane➡️Wishlist Gatto's Pizzeria -ガット・ピッツェリア4 months ago

I think Unity needs a template at the Enigma level, in the style of Unreal Engine.

Kage_Furiku's profile picture
Kage_Furiku3 months ago

Just curious, but whenever you have time, would you be able to help me out with my own custom player controller? It's somehow bugging out, also bugging me personally, and I can't figure out why it's glitching and rotating to face the world origin!

kvick's profile picture
kvick4 months ago

Friends dont let friends write character controllers from scratch

Hendrik Mennen's profile picture
Hendrik Mennen4 months ago

Looks like a Minion Jump and Run 😅

ScoutingTheNarrowRoad's profile picture
ScoutingTheNarrowRoad4 months ago

Think you’ll have it handle ledge grabbing?

Piffy🏳️‍🌈🇩🇪's profile picture
Piffy🏳️‍🌈🇩🇪4 months ago

Slopes are a Nightmare on my Controller I have to make all my walls perfectly straight Up cause otherwise i can Just Walk on Them and i literally dont know how to fix it that wouldnt also create other Problems

Sonumbulops's profile picture
Sonumbulops4 months ago

I know it's just capsule and a sphere, but I love the look of the player model.

Shiki of The Ritual Division's profile picture
Shiki of The Ritual Division4 months ago

One of the things I struggle with the most with third person controllers is that sometimes the camera jitters just a tiny bit I can fix it with time but usually forget how to fix it everytime

Mike V's profile picture
Mike V4 months ago

Lots of stuff can cause that. All of the values on this camera are very lerpy. The camera position, the camera look-at position, the character velocity, all get lerped over time so it's smooth. The camera uses LateUpdate too so the character is done moving.

AlexE developing GhostEater's profile picture
AlexE developing GhostEater4 months ago

this looks great! i still use KCC but setting up moving platforms etc is a pain w it

dongle's profile picture
dongle4 months ago

do you want attribution

RealStorm Entertainment's profile picture
RealStorm Entertainment4 months ago

It looks nice

Atelier Mycelia's profile picture
Atelier Mycelia4 months ago

Looking forward to it!

kykester's profile picture
kykester4 months ago

thank you random ass person for giving me this information

Nomnom's profile picture
Nomnom4 months ago

Looks cool! Is it kinematic based or rigidbody based?

Mike V's profile picture
Mike V4 months ago

It is a rigid body for collision with the world and other rigid bodies. But there is some extra stuff that handles slopes and stairs and platform influence.

DJ L3G3ND's profile picture
DJ L3G3ND4 months ago

nice, I was surprised to find out only somewhat recently that Unity doesnt have much built in like Unreal does, and based on 0:09 it already looks better than Unreals default movement lol (yes, it cant even be pushed along a floor while standing)

Deceptive_Games's profile picture
Deceptive_Games4 months ago

You Legend!

Related Videos