Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 4 Monaten •via X (Twitter)

30 Kommentare

Profilbild von StartledSeal
StartledSealvor 4 Monaten

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

Profilbild von Mike V
Mike Vvor 4 Monaten

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.

Profilbild von Mooncast Productions
Mooncast Productionsvor 4 Monaten

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

Profilbild von Mike V
Mike Vvor 4 Monaten

Everything is happening in Update. ; )

Profilbild von Mooncast Productions
Mooncast Productionsvor 4 Monaten

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

Profilbild von Mick Mangles
Mick Manglesvor 4 Monaten

amogos

Profilbild von Pashinin Anton
Pashinin Antonvor 4 Monaten

Cool. Also pushing objects around would be nice too.

Profilbild von Tiago Franco
Tiago Francovor 4 Monaten

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!

Profilbild von EVANGELIST: NOIRe
EVANGELIST: NOIRevor 4 Monaten

Great work keep it up

Profilbild von EveryDay
EveryDayvor 4 Monaten

Amogus

Profilbild von Philippe Tremblay
Philippe Tremblayvor 4 Monaten

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

Profilbild von Movesia
Movesiavor 4 Monaten

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

Profilbild von EGrane➡️Wishlist Gatto's Pizzeria -ガット・ピッツェリア
EGrane➡️Wishlist Gatto's Pizzeria -ガット・ピッツェリアvor 4 Monaten

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

Profilbild von Kage_Furiku
Kage_Furikuvor 3 Monaten

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!

Profilbild von kvick
kvickvor 4 Monaten

Friends dont let friends write character controllers from scratch

Profilbild von Hendrik Mennen
Hendrik Mennenvor 4 Monaten

Looks like a Minion Jump and Run 😅

Profilbild von ScoutingTheNarrowRoad
ScoutingTheNarrowRoadvor 4 Monaten

Think you’ll have it handle ledge grabbing?

Profilbild von Piffy🏳️‍🌈🇩🇪
Piffy🏳️‍🌈🇩🇪vor 4 Monaten

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

Profilbild von Sonumbulops
Sonumbulopsvor 4 Monaten

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

Profilbild von Shiki of The Ritual Division
Shiki of The Ritual Divisionvor 4 Monaten

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

Profilbild von Mike V
Mike Vvor 4 Monaten

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.

Profilbild von AlexE developing GhostEater
AlexE developing GhostEatervor 4 Monaten

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

Profilbild von dongle
donglevor 4 Monaten

do you want attribution

Profilbild von RealStorm Entertainment
RealStorm Entertainmentvor 4 Monaten

It looks nice

Profilbild von Atelier Mycelia
Atelier Myceliavor 4 Monaten

Looking forward to it!

Profilbild von kykester
kykestervor 4 Monaten

thank you random ass person for giving me this information

Profilbild von Nomnom
Nomnomvor 4 Monaten

Looks cool! Is it kinematic based or rigidbody based?

Profilbild von Mike V
Mike Vvor 4 Monaten

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.

Profilbild von DJ L3G3ND
DJ L3G3NDvor 4 Monaten

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)

Profilbild von Deceptive_Games
Deceptive_Gamesvor 4 Monaten

You Legend!

Ähnliche Videos