Unity Quick Guide - Slopes

preview_player
Показать описание
How to handle slopes on a Character Controller in Unity easily. Prevents bouncing on shallow slopes and smoothly slides down steep ones. Quick, easy, and simple.
Рекомендации по теме
Комментарии
Автор

thank you Hero 3D for teaching me about slopes. this video fixed my code and saved my game. my wife came back to me. now I can see my kids for the first time in ten years

ik
Автор

The first 10 seconds of this video were so helpful and fixed my problem. I couldn't find this answer presented so quickly and clearly anywhere else. I let out a big belly laugh at how easy it was. Thank you so much!

AJMarraffa
Автор

Everyone on the unity forms was offering like the most complex trigonometric functions to fix slope bumping and you’re like “just set the value equal to a negative value.” Thank you for that.

ahoksure
Автор

Immediately subbed. That was the best possible way to answer this. Thank you for existing

lamp
Автор

My man you are a legend, informative, concise and funny

DustyTrailsDev
Автор

goddam finally a video where I can fix my problem in 1 minutes and not in 45

nevi
Автор

hey man thanks, i really appreciate just getting right to it with the info. the last video i searched up on how to get rid of the bumpiness was 36 minutes long lmao

bircheth
Автор

ok cool, but how do I make minecraft? This isn't in the tutorial for some reason

scrub
Автор

i cant freaking believe i dint try using my nose for those damn bumps

maxb
Автор

Steep slope solution worked well, there seemed to be a limit on the slide speed for some reason though, once I increased it to a certain point it wouldn't slide any faster.

Fuzzietomato
Автор

BEST !!!
within first few seconds my issue was solved lmao ... best shit ever

maddened
Автор

moveDirection.y = -antibump if on ground

but if were not on ground what do we do?

when i apply gravity the -antibump value is still applied to moveDirection.y how do i clear it? or set it back to 0 without it staying zero and applying the gravity? when i set it back to zero the gravity just doesnt work

SonictheHedgehogInRealLife
Автор

I have a question my character moves down even on slops that have a smaller rotation than the slope limit can you help me?

Ciac
Автор

Worked nicely, only problem was the slide speed was way too high, at 0:40 just had to change + Time.deltaTime to * Time.deltaTime

buzzyrobo
Автор

error the name "DefaultMovement" does not exist in the current context

itzdrify
Автор

Really needed recoil patterns, but did it myself

kamolzaaliite
Автор

@Hero 3D : Can you please upload a github example showing how to use a Rigidbody to slide down steep slopes based on an angle?

AquariaAiryglyphia
Автор

Hey I got a problem where after sliding it stays stuck in the slide movement even on flat surfaces any idea how 2 fix?

Carteeeer
Автор

are there numbers that i need to add to the code or just copy it? (sorry im new)

goosepicklebumps
Автор

More videos please, very well done, not too much faff, maybe a little bit of a demo for step by step old slowbies like myself, nice vid though, thumbs up for sweaty feet!

LghtOn