正在加载视频...

视频加载失败

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 次观看 • 4 个月前 •via X (Twitter)

30 条评论

StartledSeal 的头像
StartledSeal4 个月前

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

Mike V 的头像
Mike V4 个月前

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 的头像
Mooncast Productions4 个月前

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

Mike V 的头像
Mike V4 个月前

Everything is happening in Update. ; )

Mooncast Productions 的头像
Mooncast Productions4 个月前

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

Mick Mangles 的头像
Mick Mangles4 个月前

amogos

Pashinin Anton 的头像
Pashinin Anton4 个月前

Cool. Also pushing objects around would be nice too.

Tiago Franco 的头像
Tiago Franco4 个月前

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 的头像
EVANGELIST: NOIRe4 个月前

Great work keep it up

EveryDay 的头像
EveryDay4 个月前

Amogus

Philippe Tremblay 的头像
Philippe Tremblay4 个月前

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

Movesia 的头像
Movesia4 个月前

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 -ガット・ピッツェリア 的头像
EGrane➡️Wishlist Gatto's Pizzeria -ガット・ピッツェリア4 个月前

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

Kage_Furiku 的头像
Kage_Furiku3 个月前

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 的头像
kvick4 个月前

Friends dont let friends write character controllers from scratch

Hendrik Mennen 的头像
Hendrik Mennen4 个月前

Looks like a Minion Jump and Run 😅

ScoutingTheNarrowRoad 的头像
ScoutingTheNarrowRoad4 个月前

Think you’ll have it handle ledge grabbing?

Piffy🏳️‍🌈🇩🇪 的头像
Piffy🏳️‍🌈🇩🇪4 个月前

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 的头像
Sonumbulops4 个月前

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

Shiki of The Ritual Division 的头像
Shiki of The Ritual Division4 个月前

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 的头像
Mike V4 个月前

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 的头像
AlexE developing GhostEater4 个月前

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

dongle 的头像
dongle4 个月前

do you want attribution

RealStorm Entertainment 的头像
RealStorm Entertainment4 个月前

It looks nice

Atelier Mycelia 的头像
Atelier Mycelia4 个月前

Looking forward to it!

kykester 的头像
kykester4 个月前

thank you random ass person for giving me this information

Nomnom 的头像
Nomnom4 个月前

Looks cool! Is it kinematic based or rigidbody based?

Mike V 的头像
Mike V4 个月前

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 的头像
DJ L3G3ND4 个月前

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 的头像
Deceptive_Games4 个月前

You Legend!

相关视频