This is one of my favorite video game exploits

Ойындар

Twitter: / garbaj2
2nd Channel: / garbajgaming
Video may contain materials provided under a CC BY 3.0 license
creativecommons.org/licenses/...

Пікірлер: 393

  • @WohaoG
    @WohaoG2 ай бұрын

    Garbaj is Garback!

  • @potapotapotapotapotapota

    @potapotapotapotapotapota

    2 ай бұрын

    Garbeautiful

  • @prod.halfnhalf

    @prod.halfnhalf

    2 ай бұрын

    i thought that said “Garblack” 💀

  • @gibleyman

    @gibleyman

    2 ай бұрын

    Garhope is restored

  • @umartemirov2398

    @umartemirov2398

    2 ай бұрын

    We are so garback

  • @lsnik

    @lsnik

    2 ай бұрын

    I loved the part where Garbaj said "It's garbin' time"! and garbed all over the place

  • @fireaza
    @fireaza2 ай бұрын

    "Why don't we have both?" -TF2

  • @ijaydubb

    @ijaydubb

    2 ай бұрын

    *cries in trying to ramp slide a stair step-clipped geometry while rocket jumping*

  • @SandmanURL

    @SandmanURL

    2 ай бұрын

    @@ijaydubbthis has made me memorize what maps have smooth stairs or not (sometimes they have both weirdly)

  • @Helperbot-2000

    @Helperbot-2000

    2 ай бұрын

    @@ijaydubb if i was a map maker, i would make a bounch of great ramps and places to slide and would give every one of them tiny bumps not noticable while walking , but always stopping trimping and rocket jumping >:DDD MUHAHAHAHAHA

  • @uncertaintytoworldpeace3650

    @uncertaintytoworldpeace3650

    2 ай бұрын

    The obvious solution…

  • @alsolii

    @alsolii

    2 ай бұрын

    both, both is good

  • @NonisLuck
    @NonisLuck2 ай бұрын

    With almost infinite examples of walking in games, they chose to start with double horny bait

  • @jonathan0berg

    @jonathan0berg

    Ай бұрын

    Those Mario 64 speed runs though. 😅

  • @FalconFetus8

    @FalconFetus8

    21 күн бұрын

    Double?

  • @BlookNook

    @BlookNook

    20 күн бұрын

    ​@@FalconFetus8Mario always gets the horny ones

  • @noahthompson95
    @noahthompson952 ай бұрын

    One disadvantage about stair-stepping is that it can be jarring to have your camera snap up whenever you climb a step, and it can cause motion sickness - this is part of why I prefer ramp stairs.

  • @valcaron

    @valcaron

    2 ай бұрын

    You can make it so the camera smoothly moves toward its destination over the course of a few frames, when the game detects it just teleported the player up due to stairs. Quake 2 does this.

  • @Marc83Aus

    @Marc83Aus

    2 ай бұрын

    Vintage story had this issue, it was most noticable when sprinting up stairs, especially if the particular stairs also was of a type with a built in speed bonus. Small steps were fine but if the height required a few seconds of travel time it got very jarring. Eventually someone came up with a solution which made stair travel not jarring, but that fast wall climbing exploit is still possible .

  • @pfifo_fast

    @pfifo_fast

    2 ай бұрын

    Thats a failure of the camera system, the camera is not climbing the stairs, the character is climbing the stairs. The camera shouldnt be constrained to the in game physics, but instead have its own set of rules for how it should behave.

  • @jeffreygordon7194

    @jeffreygordon7194

    2 ай бұрын

    As with many problems in game development, linear interpolation is the solution.

  • @decoycat

    @decoycat

    2 ай бұрын

    He explained how to fix this

  • @literally_ramiel
    @literally_ramiel2 ай бұрын

    0:24 gonna be the most replayed part of this video

  • @righty5890

    @righty5890

    2 ай бұрын

    Was gonna say that, 100%

  • @Very_Grumpy_Cat

    @Very_Grumpy_Cat

    2 ай бұрын

    But I did nor hear what he said

  • @Sidtheman

    @Sidtheman

    2 ай бұрын

    Nice graphics

  • @dr_mafarioyt4313

    @dr_mafarioyt4313

    2 ай бұрын

    @@Very_Grumpy_Cat Something something skateboard… I think

  • @sk.mahdeemahbubsamy2857

    @sk.mahdeemahbubsamy2857

    2 ай бұрын

    GYAT!!!!!

  • @amydoesart3724
    @amydoesart37242 ай бұрын

    Something interesting about Doom stairs is that the marine can climb any sector that is 24 units or lower, so a bunch of time you can Go up places you don't look like It would, modders uses this + the thin stairs exploit to make ladders with out the fancy scripting some sourceports (like GZdoom) gives you

  • @PiopioJuegos

    @PiopioJuegos

    2 ай бұрын

    Duke 3D does a similar thing but IIRC it fixes that exploit checking the difference between Duke's position and the destination point instead of just checking the height of adjacent sectors. This also adds some kind of "Coyote Time" making jumps a bit easier.

  • @chiefhydropolis

    @chiefhydropolis

    2 ай бұрын

    24 actually

  • @amydoesart3724

    @amydoesart3724

    2 ай бұрын

    @@chiefhydropolis thanks for the correction

  • @haassteambraker9959
    @haassteambraker99592 ай бұрын

    Years and years ago I played a 2D flash shooter that had a level editor. The game did stair stepping, but the stair step detection was taller than the smallest unit of measurement in the level editor. If you did it right, you could arrange a bunch of 1 unit tall platforms with a 1 unit gap completely vertical and just functionally teleport upward. Best part was the game had ragdolling, even (albeit much more rigid) while the characters were alive, so in the precious few visible frames while ascending thousands of units you'd see your guy folded like a lawnchair.

  • @ZairotOne
    @ZairotOne2 ай бұрын

    For anyone curious, have 2 raycasts - 1 for the bottom of the collider and another slightly above that. Both casts should be pointing forward. The bottom raycast checks if a wall is encountered, the higher one checks if the player could/should be able to climb over it. If the bottom one hits but the higher one doesn't, apply negative gravity. This makes it look like the player is actually stepping up stairs in first-person. This setup requires some tweaking obviously.

  • @gibleyman

    @gibleyman

    2 ай бұрын

    Modern Warfare 2019 also has a very unique way of using viewmodel animations to make going up stairs more convincing than I've ever seen. Your character will sway their guns a lot faster to visualise them having to take more steps in quick succession, as well as slightly tilting their gun. It's extremely basic and simple yet adds so much to the immersion of just walking around the map and one I'm surprised not many FPS games prior has done. It's kinda hard to explain in words tho.

  • @mr_sauce_cooks

    @mr_sauce_cooks

    2 ай бұрын

    the raycast method isn't reliable, use shapecasts trust me

  • @sinewavey

    @sinewavey

    2 ай бұрын

    This is not a correct solution and with raycasting, you will miss geometry. This is done with a full shape cast in multiple steps to work properly.

  • @DeltaNovum

    @DeltaNovum

    2 ай бұрын

    And use IK (Inverse Kinematics) to make the legs and feet position correctly.

  • @mr_sauce_cooks

    @mr_sauce_cooks

    2 ай бұрын

    @@DeltaNovum I'd really love to see more tutorials on this subject in godot, I've been thinking about learning it

  • @thevalarauka101
    @thevalarauka1012 ай бұрын

    I instantly thought of Minecraft's cake staircases at 2:10 (although you have to ride a horse for them since horses can step up an entire block while players can only do half a block without jumping)

  • @Calinou
    @Calinou2 ай бұрын

    Stair smoothing is best done on the camera only, so it doesn't make stair stepping unnecessarily slow. id Tech 3 has a very good implementation of this that still stands the test of time today (much better than it was in the Quake 1 and 2 engines). The downside of applying it on the camera only is that it won't smooth out the player from a third person perspective, so you'd need to apply this offset on the player model as well (which can come with its own issues, such as being misaligned with its actual hitbox for a split second). It's also worth considering that using ramps instead of stair stepping makes it possible for projectiles to smoothly move up/down stairs, which is sometimes desired for gameplay purposes. For instance, if you have a grenade launcher, you may want grenades to roll up stairs even if it's not realistic to make the grenade launcher more usable at the bottom of a staircase. Otherwise, most grenades would end up bouncing back towards the player shooting them due to the "wall" of every step bouncing off grenades.

  • @orange451

    @orange451

    2 ай бұрын

    This is exactly how I have chosen to implement this in my games for years. Gives the best results imo.

  • @sinewavey

    @sinewavey

    2 ай бұрын

    A combination of well designed weapon projectile only clip brushes helps provide bouncing while still retaining correct stair mechanics for the players. Collision layers are an amazing tool! Quake 3's stair stepping algo is still the gold standard, if you ask me. But that's an opinion :)

  • @Insomiotic

    @Insomiotic

    2 ай бұрын

    I'm my step step implementation, I keep the collider physics all the same, but apply smoothing to an internal "body" node. Useful for 3rd person / multiplayer!

  • @Calinou

    @Calinou

    2 ай бұрын

    @@sinewavey Grenade clips are the solution used in CS2, and they make a lot of sense for walls/ceilings, but that game has always used clipping ramps for stairs as well for player collision. It's a solution that works but involves a lot of manual labor at a large scale.

  • @sinewavey

    @sinewavey

    2 ай бұрын

    @@Calinou Yeah, it was always an oddity to me that TF used so many clip ramps for stairs despite it having the ability to. But I guess if you need weapon clips you might as well use the player clip and make some things feel smoother as ramps don't affect you in the same way as in say Quake.

  • @skaruts
    @skaruts2 ай бұрын

    Usually when people suggest ramps is when they're not really seeing the full scope of the problem: stairs are not just staircases: stairs can be everywhere. The same code that can climb a staircase is what will climb a sidewalk, or a small box, or any kind of small prop model, or a stepped rock, or any kind of steps you might have in your geometry. Ramps can only be feasibly used in very simplistic levels, if steps are few enough that mappers can be relied to not forget any.

  • @yourunclejoe9500

    @yourunclejoe9500

    2 ай бұрын

    but i'd still rather the map maker clip steps so my camera isnt moving up and down constantly. if there is so much shit on the ground that clipping would be a problem, then stair stepping would be a problem too.

  • @kirasmith1147

    @kirasmith1147

    2 ай бұрын

    Camera movement that jumps is the worst possible scenario, camera movement that moves forward, stops, moves up, stops, moves forward, ect... is still *really* bad. Solve other objects with any strategy you want, but the intended path shouldn't contain jarring camera movement, so you either use a ramp or otherwise allow the controller to have smooth movement

  • @skaruts

    @skaruts

    2 ай бұрын

    @@kirasmith1147 most implementations smooth out the camera.

  • @samschellhase8831
    @samschellhase88312 ай бұрын

    Huh, I wonder what the most replayed part of this video is going to be

  • @kamillatocha
    @kamillatocha2 ай бұрын

    GOD FORBID ANY VR developer doing this i instantly get sick if i go such stairs in VR

  • @Fexxis_
    @Fexxis_2 ай бұрын

    sorry but i’m gonna have to be the one to comment on dva.

  • @taninrobertson2262

    @taninrobertson2262

    Ай бұрын

    Thank you for your service

  • @SJrad
    @SJrad2 ай бұрын

    Mine is when the devs forget to put a negative speed cap combined with a way to build up negative speed.

  • @gladbrad

    @gladbrad

    2 ай бұрын

    Valve source abh comes to mind

  • @thecelestialstarship

    @thecelestialstarship

    Ай бұрын

    Backwards long jump mario 64

  • @Cunnah101
    @Cunnah1012 ай бұрын

    I use godots physics server to test if the body of the player can sit on the stair then teleport up. This covers a lot of edge cases. I also have the camera lerp to the new position to smooth out the transition as you can get some jittering on un-even surfaces. You also have to be aware of ramps, had a bug where the player began accelerating up the ramp as the character controller was handling the ramp and the stair step was handling the ramp.

  • @MechMK1
    @MechMK12 ай бұрын

    It's interesting that you mentioned CS:GO, where developers deliberately turn most stairs into ramps, specifically to give that smooth feel and avoid throwing off your aim

  • @relt1554
    @relt15542 ай бұрын

    I want a new game mechanic where if you aren't looking at the stairs you trip on them.

  • @bene2451

    @bene2451

    20 күн бұрын

    you don't need to do that In real life though

  • @coolgameschad
    @coolgameschadАй бұрын

    The "magic carpet" strategy is my favorite, which I use in my game: The character is just always floating above the terrain at knee height, like a boat. A downward scan gathers the distance to the terrain as you pass over it, causing you to gently rise or sink by applying a force proportional to the error. It handles all irregular terrain as well as stairs and always feels smooth.

  • @andrewgraham2546
    @andrewgraham25462 ай бұрын

    And yet one of the things we see commonly done in CS for the last 10 years has been adding clip brushes over stairs so they all act like ramps. Heck, I even do this in my HL2 maps.

  • @bobmcbobbob1815

    @bobmcbobbob1815

    2 ай бұрын

    In fps games stairstepping makes makes the camera jump incredibly annoyingly and makes aiming harder for the enemy

  • @5ld734
    @5ld7342 ай бұрын

    I am talking within the context of Unity specifically but this can work in anything, my favorite(underrated) solution for games with a physics player: shorten the players collider to be about their height without legs, then hover the player to the intended height by applying a continuous force (ray cast down player height meters from head, add an upwards force to the character that’s JUST enough to hover them to their intended height, then add some damping) and then your character moves nice and buttery smooth, over small objects and stairs with ease. The only downside is the character has accelerated motion and would take a lil bit to get to it’s intended walking speed which isn’t always good for instant reflex games, as well as needing to separate the camera from the player body transform in order to prevent camera jitter. You can adjust the bounciness, the height, the friction, etc. it’s a very nice system and makes jumping and crouching very easy to implement

  • @satinden
    @satinden2 ай бұрын

    this is such a huge deal. im happy more people are talking about this and its awesome to see youve made a video on it. trying to create this in godot was one of the hardest things i tried to solve as a beginner gamedev

  • @GreatCollapsingHrung
    @GreatCollapsingHrung2 ай бұрын

    I've recently started working on my first 3D game, and hadn't looked into how others handle stairs, but only gave them a little bit of thought. I hadn't considered doing a hitbox near the feet, but had thought of just casting a couple of rays in the direction of motion, one at the feet and one just above the max step height. I figured if the bottom one hits an obstacle but the top one doesn't, it means you ran into a step you can climb.. That way the length of the top ray can also determine how steep the stairs can be and still allow the player to climb, because if it's too steep the ray will hit the next step up. But now that I'm thinking about it, that may not work well when going up a sloped floor because only the bottom ray would hit the floor so it would be treated as a stair. Thinking out loud, though, if the bottom ray angles upward at the angle of the steepest slope that I want the player to be able to walk up, it won't hit the slope, and that might work for my purposes.. or if I don't change the angle of the bottom ray, but instead check the normal of whatever it collided with, I could tell whether it's a slope I could walk up or something I'd have to step up.. hmmm.. I'll need to look more at this. Thanks for this video, it's made me think about things that I had been putting off

  • @novarender_

    @novarender_

    2 ай бұрын

    You could go with your original solution and interpret the result based on how far the upper ray traveled past where the lower one hit. This distance could be based on, say, the minimum step depth, maximum floor steepness you can travel up, minimum distance you're allowed to be from a wall, or some other criteria. Something to think about.

  • @kezif
    @kezif2 ай бұрын

    my personal favorite is ability to recover from 1km fall by grabbing the edge. Characters in games have really great upper strength

  • @xonxt
    @xonxt2 ай бұрын

    Smooth stairs (with a ramp) are a must for VR games... otherwise with stair-stepping it's too uncomfortable.

  • @jakd.rabbit
    @jakd.rabbit2 ай бұрын

    I do really love how Sucker Punch handled stairs in the Sly Cooper series (and I guess inFAMOUS as well as they implemented the same system there but it blew my mind as a 5 year old in 2002) where they had a hybrid system of the slope method but the stairs were still coded in a way where whether the player were walking or just stopped, the inverse kinematics of the legs would still reference the stair step and place the foot on it even altering the idle animations foot and leg placement and movement in the process. It was always so funny to get Sly somewhere where the ground was flat but there was a sudden slope transition and watch him go into his idle animation where he crouches and watch one of his feet and the leg it was attached to just pop up higher than the rest of his body in such an unnatural way.

  • @henryfleischer404
    @henryfleischer4042 ай бұрын

    I've been working on an FPS in Godot, and I spent a while trying to figure out this issue. Eventually, I decided to just use ramps- due to the way momentum works in my game, snapping up stairs would fling the player into the air at a very high speed. The player is able to skate at up to mach 0.3 currently, so the plan is for collision and visuals to not match 1:1- if they did, a cable could send the player flying a hundred feet in the air, which would feel wrong in power armor. Although, a cable would be more likely to stop the player dead, or deflect them 45 degrees, as I'm having the player and all enemies use cylindrical hitboxes.

  • @IAmCymepka
    @IAmCymepka2 ай бұрын

    That reminds me of that one staircase in Minecraft where you use pretty much everything to make it 6x1x2 blocks

  • @isaacbunsen5833
    @isaacbunsen58332 ай бұрын

    I like to reframe it as a "curb" or "step" problem. Since its something you'll probably want a general solution for. Imagine what you would have to do for a curb step that can move around if were using the ramp method. My trick is to make the hitbox not cover the legs and use a raycast to determine what height it needs to adjust too. This way you dont even notice the little things you step over and you go smoothly up stairs.

  • @sam_making_games
    @sam_making_games2 ай бұрын

    Unreal Engine already has a "Character Movement Component" that handles these use cases. You can define the Max Step height as well as max walkable slope angle.

  • @ince55ant

    @ince55ant

    2 ай бұрын

    i just moved from using unreal to using godot. i miss unreals movement so much lol

  • @bosstowndynamics5488

    @bosstowndynamics5488

    2 ай бұрын

    That's still using stair stepping behind the scenes though, surely? Even if you don't have to implement it yourself it still pays to be aware of how your game engine is doing things so you can troubleshoot edge cases

  • @mackerel987
    @mackerel9872 ай бұрын

    literally had this problem yesterday and now you upload this video XD amazing

  • @u12bdragon
    @u12bdragonАй бұрын

    Naww he used Haydee footage 💀💀

  • @nvcnc
    @nvcnc2 ай бұрын

    Then there's GTA IV. The character actually stepped on every single step and had to slow down to run up a staircase. Even NPC's did so too. A funny thing to do in the game was to find the longest staircase and walk up to an NPC and bump them so they stumbled. If they couldn't catch themselves they would trip and actually tumble down the stairs in an extremely realistic fashion. That game was so ahead of its time.

  • @skullthrower8904

    @skullthrower8904

    Ай бұрын

    You press jump at around the last step of a stair you can jump a lot higher than normal Sometimes you even take fall damage

  • @alexjackson4011
    @alexjackson40112 ай бұрын

    Welcome back

  • @ripleyxo631
    @ripleyxo6312 ай бұрын

    Stryxo and Garbaj back, perfect.

  • @jasmine.rchrds

    @jasmine.rchrds

    2 ай бұрын

    genuinely 😁

  • @goat-7658
    @goat-76582 ай бұрын

    It's a little weird to me that most games of the 21st century opt for the ramp approach, considering that Doom had smooth stair-stepping all the way back in 1993, albeit with the exploit seen here (most famously seen in MAP19 of TNT: Evilution).

  • @RoughEdgeBarb

    @RoughEdgeBarb

    2 ай бұрын

    Doom is essentially a 2D game, so it's really quite different.

  • @colbyboucher6391

    @colbyboucher6391

    2 ай бұрын

    ​@@RoughEdgeBarbIt's REALLY not.

  • @Bananenbauer123

    @Bananenbauer123

    2 ай бұрын

    @@colbyboucher6391 It is 2D in the sense that the 3rd dimension doesn't exist gameplay wise, it's a visual trick, but maybe too technical to convey.

  • @colbyboucher6391

    @colbyboucher6391

    2 ай бұрын

    @@Bananenbauer123 Except it does exist, just not for everything. Cacodemons can float through "windows" and right over other enemies at whatever height they please, for instance. Id made a 3D engine and then yanked some of the math required to make the axis actually work properly for the sake of speed, but people overexaggerate how drastic it is.

  • @redrevyol

    @redrevyol

    2 ай бұрын

    Those developers may have taken a physics class during their college years. hehe

  • @justafoon
    @justafoonАй бұрын

    I love the stairs in Detroit Become Human. If you run around in some of the levels, there's TONS of animations just foir stepping up, and over things.

  • @PrueferAuge
    @PrueferAuge2 ай бұрын

    talks about stairs uses footage from gamma gamma, the game where the staircases are known to get you stuck/ not smooth ascention of the staircase just run up the stairs from the bar in rostov, im bunnyhopping up to avoid the steps xd

  • @lewastyj
    @lewastyj2 ай бұрын

    Dude is crazy, he did not only represent ramp wrong, but he says that stair stepping is better

  • @cattysplat

    @cattysplat

    20 күн бұрын

    Yep, stair stepping is incredibly hard to appear genuine and needs a ton of smoothing and animation trickery to look good, but there will always be something off about it and so many things can go wrong or bug out, especially with differing sized steps. Ramp allows the animation to stay natural and flexible in size whilst limiting any problems, the player never sees the ramp so the brain fills in the gaps of assumption, like any good animation will do.

  • @realchoodle
    @realchoodle2 ай бұрын

    Stair stepping is so jarring tho. Maybe it’s just tf2 trauma but I absolutely hate it. also, in real life, waking up stairs isn’t actually that bumpy, so the ramp solution is more intuitive.

  • @kaksspl
    @kaksspl2 ай бұрын

    Funny how you used CS as an example of stair stepping. Yes, it supports it because of how old roots of Source are but over the many years of development of CS series and TF2 as well, both Valve and even community worked on smoothing out the stairs with simple or complex ramps because a series of stairs where you just keep bouncing is neither realistic or fun. It's just jarring to look at. But hey, Valve can do whatever, what do they know about good design and what players prefer? Well turns out most players agree. The very same 3Kliksphilip whose video you used has another video about the curved staircase on Dust II. How many times it changed, how for the longest time it was bumpy, how players developed a pattern of invisible colliders that could work with the shape and within Source engine and how finally Valve used a very similar solution to the one provided by the community. The best solution for many seems to be a ramp starting after first step so you get a single bump to know you walked onto the stairs and the rest goes smoothly. Just a bumpy staircase? Big nono.

  • @npc_blob1609

    @npc_blob1609

    2 ай бұрын

    There's a larger issue with having steps _anywhere_ that games need to account for. If you jump while moving and slightly graze your collider on one, you'll instantly come to a stop which is dreadful especially during combat. Source does nothing to accommodate this which is another reason Source mappers are obligated to coat everything in clip ramps.

  • @TheJakeSweede
    @TheJakeSweede2 ай бұрын

    I think for most competetive shooters (but depending on the type/ style) it is better to have some kind of slope, the jitteriness can be annoying, both for the player on the stairs as well as for the second player trying to kill the player on the stairs (the head youre aiming at jumping up & down). Even if you have the gradual steps, I think this is most effective if you have really good animation that makes the player model move realistic, which isnt always so easy (I think). But even if you have really good animations, it can still be abruptive to the flow/ speed of moving around. For CS, I think it was the right decision to go for slopes with the rotating stairs in "lower" on the dust2 map, even when it meant they had to make the stairs more narrow.

  • @roxqu
    @roxqu2 ай бұрын

    wicked, garbaj is back

  • @bland9876
    @bland98762 ай бұрын

    Yeah the way the camera just jerks up all of a sudden when you come do a step unlike how it would be in real life if the camera was equal to your eyeballs is kind of interesting.

  • @TEJR69
    @TEJR692 ай бұрын

    The one game I always felt like the developers did something different with stairs is the new Hitman trilogy. I don't know if it's the 3rd person or they did something real different, but in those games whenever you approach stairs be it walking or running, you always slow down just a tiny bit and the character is walking step by step up or down, if you run he's skipping a step or in most cases he just "jogs" up those stairs. I can't really describe what I think is different about that game, but those who played it and can visualise it in their minds must agree that game had some darn clean stair mechanic

  • @lunatunny7594
    @lunatunny759412 күн бұрын

    biggest brain option is to have a slop that visually functions like stairs. The players collision follows the slope, but the model follows the stairs. Like sonic 1's bridges in greenhill where sonic doesn't actually drop down with the bridge.

  • @Ethan-yv6cb
    @Ethan-yv6cb2 ай бұрын

    Halo 3 ODST does a super cool thing where the stairs feel like a smooth ramp, but by some wizardry, your ODST places his feet EXACTLY on the steps- they always land where your feet logically would In terms of both height and depth

  • @panampace

    @panampace

    2 ай бұрын

    They’re using ramps plus IK for animating the legs

  • @Ethan-yv6cb

    @Ethan-yv6cb

    2 ай бұрын

    @@panampace I somehow forgot inverse kinematics exist

  • @archandrogyne
    @archandrogyne2 ай бұрын

    I appreciate you calling out the potential for disability instead of just generalizing

  • @fluffycritter
    @fluffycritterАй бұрын

    An approach I've seen some folks use is to use separate "climbing" collision for the player which is in the form of a sphere or an ellipsoid, so pushing forward lifts them up through the lateral force of the step's corner on the climbing volume. This also happens to give you a few other nice benefits for free, like an inherent limit to how high you can climb on a single step, and slows you down during climbing and gives a much more graceful height transition.

  • @fluffycritter

    @fluffycritter

    Ай бұрын

    For an example, look for Paul Nettle's whitepaper entitled "Generic Collision Detection for Games Using Ellipsoids" which is I think where I first saw this technique.

  • @coolbrotherf127
    @coolbrotherf127Ай бұрын

    In tactical games like Counter Strike most of the stairs are smooth ramps so the sudden bump up or down doesn't throw off people's aim when they are trying to move up and down.

  • @MagicGonads
    @MagicGonads2 ай бұрын

    Another solution is 'Inverse Kinematics' where you partially separate the legs and the rest of the body so the body is more stable while the legs move move to adjust to the terrain. This is often used for animations but it is also sometimes used for physics.

  • @dafffodil
    @dafffodil2 ай бұрын

    love the tall stairs exploit. Been thinking about that since playing worms armageddon years and years ago

  • @ananthukrishna5259
    @ananthukrishna52592 ай бұрын

    I also like the floating capsule approach to handle stairs. or any uneven surfaces.

  • @dr_mafarioyt4313

    @dr_mafarioyt4313

    2 ай бұрын

    Very jank, very unreliable… but very funny

  • @ananthukrishna5259

    @ananthukrishna5259

    2 ай бұрын

    @@dr_mafarioyt4313 wait?? what do you mean?

  • @ananthukrishna5259

    @ananthukrishna5259

    2 ай бұрын

    @@dr_mafarioyt4313 wait.. what do you mean jank and unreliable?

  • @dr_mafarioyt4313

    @dr_mafarioyt4313

    2 ай бұрын

    @@ananthukrishna5259 Oh, sorry I misread that, I thought you meant literally using the collider of the players capsule to “bump” you up the stairs, lol

  • @ananthukrishna5259

    @ananthukrishna5259

    2 ай бұрын

    @@dr_mafarioyt4313 lol. but thats the first character controller you learn to make tho... what I meant was the other one. where you make the capsule float by raycasting downwards to check the distance and applying appropriate movement upwards to keep it in set height.

  • @FrankGennari
    @FrankGennari2 ай бұрын

    The way I handled steep stairs is by reducing the player's horizontal speed based on the stairs angle (horizontal/vertical distance). This way the height increase is capped. I even used this to make ladders that are effectively near vertical stairs.

  • @pauljs75
    @pauljs75Ай бұрын

    The stair into "elevator" thing depends on if the game determines if a player has to be some distance onto a step as well (the way collision boxes are used might prevent moving onto a sliver of terrain), and whether it needs a stair terrain type to allow for this type of movement. So it seems that for some games it's more like a hacky modded map kind of thing than something which is part of default game maps.

  • @illitero
    @illitero2 ай бұрын

    You reminded me of my fascination with interaction between the character model and environment in GTA4. It may be a bit much to call it realistic, but it was certainly more realistic than not in so many miniscule ways that I don't think I've seen in any other games (even GTA5)

  • @strangeanimations2518
    @strangeanimations25182 ай бұрын

    The feel of walking up the stairs in The Return of The Obra Dinn is really good!

  • @xaracen7207
    @xaracen7207Ай бұрын

    the issue with stair stepping is also when you try to go down you yeet yourself away from the staircase

  • @Avaku333
    @Avaku333Ай бұрын

    You could always calculate the length of the top of the stair and if it's shorter by a defined length, don't allow to step

  • @DevinDTV
    @DevinDTV2 ай бұрын

    stair stepping has the drawback of being unrealistic in terms of head movement. in real life your head goes smoothly up almost in a diagonal line (can be if you try but normally there will be some amount of deviation). ramps are actually more realistic in this way.

  • @randomcatdude

    @randomcatdude

    2 ай бұрын

    this can be fixed with extra camera behaviour to smoothly react to stairsteps

  • @soapspangledgames2444
    @soapspangledgames24442 ай бұрын

    In the 3D game I'm making (Seas of Reverence), my early implementation just uses ramps. Since the player always knows what kind of object it's standing on, it will be a simple matter of the stair block specifying the step dimensions. Then the player can behave differently depending on those dimensions and where it is within a step.

  • @Gwizz1027
    @Gwizz10272 ай бұрын

    welcome back Garbaj man

  • @duncanurquhart5278
    @duncanurquhart527823 күн бұрын

    2:45 i was so certain you were going to say "add upwards force to the player character" and then give examples of using steep slopes to get insane vertical momentum

  • @disres1337
    @disres13372 ай бұрын

    Surprise surf gameplay, much appreciated

  • @willowkay
    @willowkay2 ай бұрын

    Extremely steep stairs can be an interesting way to make slightly leaning ladders which is kinda cool I suppose technically you could push it to the absolute limit to make mostly vertical ones too

  • @matt92hun
    @matt92hun2 ай бұрын

    I remember the Stalker games having some weird stairs. They felt like they weren't always working as typical video game stairs, but I can't remember what they actually did.

  • @Mulroli
    @Mulroli2 ай бұрын

    0:24 🔥🔥🔥

  • @stephenbanyar1874

    @stephenbanyar1874

    2 ай бұрын

    It's so "🔥🔥🔥" that Garbaj had to turn off the 🎇Phong Shading™🎇 !!

  • @genghisdingus
    @genghisdingus2 ай бұрын

    Hot take: the auto smoothing that gmod has looks better than walking up a clip brushed off staircase

  • @donovian2538
    @donovian25382 ай бұрын

    Miss you, Garbaj

  • @TomHarrisP
    @TomHarrisP2 ай бұрын

    These videos really hit the spot in bed at the end of a long day

  • @billkammermeier
    @billkammermeier2 ай бұрын

    My favorite "exploit" is the crouch jumping feature in the goldsource engine. The feet come up to meet the player's butt and then the model falls down when you crouch, so if you are holding forward you can "jump" over small ledges just by holding forward and crouching. This is easy to do in Day of Defeat and I assume it works the same way in HL, TFC, CS 1.6 etc...

  • @magnuspedersen5751
    @magnuspedersen57512 ай бұрын

    let's goooo!! another upload

  • @williamou3005
    @williamou3005Ай бұрын

    I actually really like Honkai Stair Rail's approach to stairs. They have the stairs as a ramp, but if you pause on stairs, the characters gets ever so gently pushed up in order to actulaly match the visual appearance of the stairs. At least, this is what I think they do. I noticed the phenomenon on some relatively low incline stairs, so I may have simply been mistaken.

  • @N1NJ0J
    @N1NJ0J2 ай бұрын

    Garbaj is back! Yaaaaay!

  • @naronga6857
    @naronga68572 ай бұрын

    I like the floating capsule solution that the devs from "very very vallet" came up with, since is less prone to exploits and it is easier for level design.

  • @heretichazel
    @heretichazelАй бұрын

    In my modded minecraft world I have a pair of boots that lets me auto step up an entire block, so I made a "staircase" using progressively thinner slices of blocks to get up to part of my base

  • @Ousadanken
    @Ousadanken2 ай бұрын

    dirt kids, the only replayed part was when that lady had her ass swaying

  • @LichenJuice
    @LichenJuiceАй бұрын

    giggling at how the replays are drastically higher for the haydee clip

  • @1337GameDev
    @1337GameDev7 күн бұрын

    2:40 - Or you can keep track of how fast you're going up vertically and then stop stair stepping for a set time frame, or until you return to the level before the "rapid stepping" happened.

  • @LunaticEdit
    @LunaticEdit7 күн бұрын

    Or you use a pillbox collision and let the force push the object up the stairs purely in physics. As long as you are locked on X/Z rotation, if you push hard enough your character will 'slide' up the stair via the slope of the bottom sphere of the pill collision. Not only is it essentially code-less (if you're using a physics engine), it also gives stairs some heft. You can change how the sliding feels by adjusting the friction of the stairs or player collision object.

  • @MFKitten
    @MFKitten2 ай бұрын

    Staircases and elevators! absolute nightmares!

  • @LazyDev418
    @LazyDev4182 ай бұрын

    MOVEMENT

  • @darkacb8422
    @darkacb8422Ай бұрын

    the downside of stair stepping is that it can be visually jarring. at least to me, a lot of games that implement stair stepping can make my eyes hurt. of course, this all depends on the game and its implementation of stair stepping, if it uses it.

  • @Crowbar
    @Crowbar2 ай бұрын

    The invisible ramp collision technique is way better. It's also what Counter-Strike does btw in official maps and pretty much every serious community map.

  • @Verchiel_
    @Verchiel_2 ай бұрын

    woop woop garbaj blessing our eyeballs (mostly ears) once again

  • @SuperWiiBros08
    @SuperWiiBros082 ай бұрын

    Every Garbaj video should have the Haydee clip

  • @Schoonerbeer2

    @Schoonerbeer2

    Ай бұрын

    Hehe

  • @ezioassassin2028
    @ezioassassin2028Ай бұрын

    Another solution is to also measure the depth of the stair so the player can only take a step up if there is enough room for the player to stand on top

  • @mihailos8701
    @mihailos87012 ай бұрын

    Garbaj coming back and showing footage of modded Haydee is a surprise to be sure... But a welcome one 💀👍

  • @MajatekYT
    @MajatekYT2 ай бұрын

    It'd be easy enough to add a secondary check to see if the place your player character is trying to step up onto has an area large enough to support a virtual foot. A small ring of raycasts aimed downwards (8 is enough without being too expensive to calculate - FPS games use plenty more for shotgun spread anyway) can check where if you have even one raycast reporting a gap/fall, just don't let the player move upwards.

  • @Mernom
    @Mernom2 ай бұрын

    The second approach also has native support for curbs.

  • @leetNightshade
    @leetNightshade2 ай бұрын

    Moving the camera along jagged stair collision, even with interpolation, is terrible for people worried about motion sickness btw, especially at faster movement speeds.

  • @darknetworld
    @darknetworld2 ай бұрын

    Well there another one is the floating player with ray casting for detecting I think since if you using IK they need to adjust real time for the foot since collision effect them. Or say camera shaking is needed to be smooth but knowing it the physics doing the hard work.

  • @cursedwither7888
    @cursedwither78882 ай бұрын

    came for the haydee in the preview, stayed for the information on how games work.

  • @guy_th18

    @guy_th18

    Ай бұрын

    came "for" or "from"?

  • @Thesupperals
    @Thesupperals2 ай бұрын

    I love the post man. You will hear stuff about this a lot in game dev. This phrase in particular "the unintended motion should be avoided" has become all too common place. What a lot of people do not know about is forwards detection. You can set up a ray cast relative to the player's waist height and thigh length, aimed downwards, at all times. This of course will be casting to detect height in front of them. All you need to do is compare the player's current position with what the raycast is detecting. First set the parameters to accept only a specific range. This range is normally fixed because these are stairs. (Side note: This can alternatively be used for other sources of future detection such as falling.) Next, if the raycast is detecting an increase OR decrease within the acceptable range, then trigger an event that interpolates a SLERP between your current position and the next position. There you go, realistic motion on stairs. With this tool now at everyone's disposal, this is why you see stairs being longer comparatively as apposed to being almost equidistant when realistically dissecting the architecture.

  • @ThatOnePolishGuy2137
    @ThatOnePolishGuy21372 ай бұрын

    garbaj, can you explain how source movement's rampsliding works? (when you go fast, you slide up them and can be sent flying)

  • @jasmine.rchrds
    @jasmine.rchrds2 ай бұрын

    she's back yay

  • @Marder_IFV

    @Marder_IFV

    2 ай бұрын

    *she*

  • @Marder_IFV

    @Marder_IFV

    2 ай бұрын

    Oh wait what

  • @jasmine.rchrds

    @jasmine.rchrds

    2 ай бұрын

    @@Marder_IFV garbaj is trans

  • @Harry_Fullick
    @Harry_Fullick2 ай бұрын

    personally I can find stair stepping creates jarring camera and player model movements, especially in first person games.

  • @Jetiix
    @JetiixАй бұрын

    Garbaj you made me realize making games is more fun than playing them

  • @TheRoboticFerret
    @TheRoboticFerret2 ай бұрын

    SHE'S BACK YEAHH

  • @freazywarr
    @freazywarrАй бұрын

    This exploit makes it really easy to make ladders when mapping for the original Doom games.

Келесі