This is one of my favorite video game exploits

  Переглядів 220,658

Garbaj

Garbaj

2 місяці тому

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

КОМЕНТАРІ: 389
@WohaoG
@WohaoG 2 місяці тому
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
@fireaza 2 місяці тому
"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 Місяць тому
both, both is good
@NonisLuck
@NonisLuck 2 місяці тому
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 13 днів тому
Double?
@BlookNook
@BlookNook 12 днів тому
​@@FalconFetus8Mario always gets the horny ones
@amydoesart3724
@amydoesart3724 2 місяці тому
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
@noahthompson95
@noahthompson95 2 місяці тому
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 Місяць тому
He explained how to fix this
@literally_ramiel
@literally_ramiel 2 місяці тому
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!!!!!
@ZairotOne
@ZairotOne 2 місяці тому
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
@haassteambraker9959
@haassteambraker9959 2 місяці тому
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.
@Calinou
@Calinou 2 місяці тому
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.
@thevalarauka101
@thevalarauka101 2 місяці тому
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)
@skaruts
@skaruts 2 місяці тому
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
@samschellhase8831 Місяць тому
Huh, I wonder what the most replayed part of this video is going to be
@kamillatocha
@kamillatocha 2 місяці тому
GOD FORBID ANY VR developer doing this i instantly get sick if i go such stairs in VR
@SJrad
@SJrad 2 місяці тому
Mine is when the devs forget to put a negative speed cap combined with a way to build up negative speed.
@gladbrad
@gladbrad Місяць тому
Valve source abh comes to mind
@thecelestialstarship
@thecelestialstarship Місяць тому
Backwards long jump mario 64
@relt1554
@relt1554 Місяць тому
I want a new game mechanic where if you aren't looking at the stairs you trip on them.
@bene2451
@bene2451 12 днів тому
you don't need to do that In real life though
@andrewgraham2546
@andrewgraham2546 2 місяці тому
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
@Cunnah101
@Cunnah101 2 місяці тому
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
@MechMK1 2 місяці тому
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
@5ld734
@5ld734 2 місяці тому
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
@GreatCollapsingHrung
@GreatCollapsingHrung 2 місяці тому
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
@kezif 2 місяці тому
my personal favorite is ability to recover from 1km fall by grabbing the edge. Characters in games have really great upper strength
@satinden
@satinden 2 місяці тому
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
@jakd.rabbit
@jakd.rabbit 2 місяці тому
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
@henryfleischer404 2 місяці тому
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.
@sam_making_games
@sam_making_games 2 місяці тому
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
@xonxt
@xonxt 2 місяці тому
Smooth stairs (with a ramp) are a must for VR games... otherwise with stair-stepping it's too uncomfortable.
@alexjackson4011
@alexjackson4011 2 місяці тому
Welcome back
@goat-7658
@goat-7658 2 місяці тому
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
@IAmCymepka
@IAmCymepka 2 місяці тому
That reminds me of that one staircase in Minecraft where you use pretty much everything to make it 6x1x2 blocks
@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.
@ripleyxo631
@ripleyxo631 2 місяці тому
Stryxo and Garbaj back, perfect.
@jasmine.rchrds
@jasmine.rchrds 2 місяці тому
genuinely 😁
@isaacbunsen5833
@isaacbunsen5833 Місяць тому
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.
@mackerel987
@mackerel987 2 місяці тому
literally had this problem yesterday and now you upload this video XD amazing
@PrueferAuge
@PrueferAuge 2 місяці тому
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
@lewastyj 2 місяці тому
Dude is crazy, he did not only represent ramp wrong, but he says that stair stepping is better
@cattysplat
@cattysplat 12 днів тому
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.
@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.
@Fexxis_
@Fexxis_ 2 місяці тому
sorry but i’m gonna have to be the one to comment on dva.
@taninrobertson2262
@taninrobertson2262 24 дні тому
Thank you for your service
@roxqu
@roxqu 2 місяці тому
wicked, garbaj is back
@nvcnc
@nvcnc Місяць тому
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
@realchoodle
@realchoodle 2 місяці тому
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.
@bland9876
@bland9876 Місяць тому
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.
@TheJakeSweede
@TheJakeSweede 2 місяці тому
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.
@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.
@TEJR69
@TEJR69 2 місяці тому
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
@strangeanimations2518
@strangeanimations2518 2 місяці тому
The feel of walking up the stairs in The Return of The Obra Dinn is really good!
@ananthukrishna5259
@ananthukrishna5259 2 місяці тому
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.
@Mulroli
@Mulroli 2 місяці тому
0:24 🔥🔥🔥
@stephenbanyar1874
@stephenbanyar1874 2 місяці тому
It's so "🔥🔥🔥" that Garbaj had to turn off the 🎇Phong Shading™🎇 !!
@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.
@dafffodil
@dafffodil 2 місяці тому
love the tall stairs exploit. Been thinking about that since playing worms armageddon years and years ago
@archandrogyne
@archandrogyne 2 місяці тому
I appreciate you calling out the potential for disability instead of just generalizing
@lunatunny7594
@lunatunny7594 4 дні тому
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-yv6cb 2 місяці тому
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 Місяць тому
They’re using ramps plus IK for animating the legs
@Ethan-yv6cb
@Ethan-yv6cb Місяць тому
@@panampace I somehow forgot inverse kinematics exist
@FrankGennari
@FrankGennari 2 місяці тому
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.
@fluffycritter
@fluffycritter 27 днів тому
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 26 днів тому
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.
@MagicGonads
@MagicGonads Місяць тому
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.
@soapspangledgames2444
@soapspangledgames2444 Місяць тому
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.
@genghisdingus
@genghisdingus 2 місяці тому
Hot take: the auto smoothing that gmod has looks better than walking up a clip brushed off staircase
@matt92hun
@matt92hun 2 місяці тому
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.
@TomHarrisP
@TomHarrisP 2 місяці тому
These videos really hit the spot in bed at the end of a long day
@Gwizz1027
@Gwizz1027 2 місяці тому
welcome back Garbaj man
@SuperWiiBros08
@SuperWiiBros08 2 місяці тому
Every Garbaj video should have the Haydee clip
@Schoonerbeer2
@Schoonerbeer2 Місяць тому
Hehe
@disres1337
@disres1337 2 місяці тому
Surprise surf gameplay, much appreciated
@xsonority
@xsonority 2 місяці тому
GODOT MENTIONED!!!! LIKED AND SUBSCRIBED!!!!
@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
@magnuspedersen5751
@magnuspedersen5751 2 місяці тому
let's goooo!! another upload
@MajatekYT
@MajatekYT 2 місяці тому
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.
@N1NJ0J
@N1NJ0J 2 місяці тому
Garbaj is back! Yaaaaay!
@xaracen7207
@xaracen7207 Місяць тому
the issue with stair stepping is also when you try to go down you yeet yourself away from the staircase
@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.
@cursedwither7888
@cursedwither7888 Місяць тому
came for the haydee in the preview, stayed for the information on how games work.
@guy_th18
@guy_th18 Місяць тому
came "for" or "from"?
@darknetworld
@darknetworld 2 місяці тому
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.
@Ousadanken
@Ousadanken 2 місяці тому
dirt kids, the only replayed part was when that lady had her ass swaying
@jasmine.rchrds
@jasmine.rchrds 2 місяці тому
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
@illitero
@illitero Місяць тому
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)
@donovian2538
@donovian2538 2 місяці тому
Miss you, Garbaj
@u12bdragon
@u12bdragon Місяць тому
Naww he used Haydee footage 💀💀
@Crowbar
@Crowbar 2 місяці тому
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.
@LazyDev418
@LazyDev418 2 місяці тому
MOVEMENT
@Jetiix
@Jetiix 25 днів тому
Garbaj you made me realize making games is more fun than playing them
@billkammermeier
@billkammermeier 2 місяці тому
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...
@MFKitten
@MFKitten 2 місяці тому
Staircases and elevators! absolute nightmares!
@DevinDTV
@DevinDTV Місяць тому
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 Місяць тому
this can be fixed with extra camera behaviour to smoothly react to stairsteps
@willowkay
@willowkay 2 місяці тому
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
@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
@mihailos8701
@mihailos8701 2 місяці тому
Garbaj coming back and showing footage of modded Haydee is a surprise to be sure... But a welcome one 💀👍
@duncanurquhart5278
@duncanurquhart5278 15 днів тому
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
@MemphiStig
@MemphiStig 2 місяці тому
Walking up stairs? Are you mad?
@Verchiel_
@Verchiel_ 2 місяці тому
woop woop garbaj blessing our eyeballs (mostly ears) once again
@LichenJuice
@LichenJuice Місяць тому
giggling at how the replays are drastically higher for the haydee clip
@Mernom
@Mernom 2 місяці тому
The second approach also has native support for curbs.
@MinibossMakaque
@MinibossMakaque Місяць тому
Please do one about going down stairs and ramps without floating/falling due to gravity not overcoming your speed.
@Harry_Fullick
@Harry_Fullick 2 місяці тому
personally I can find stair stepping creates jarring camera and player model movements, especially in first person games.
@leetNightshade
@leetNightshade 2 місяці тому
Moving the camera along jagged stair collision, even with interpolation, is terrible for people worried about motion sickness btw, especially at faster movement speeds.
@naronga6857
@naronga6857 2 місяці тому
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.
@user-nq6wn4hm7s
@user-nq6wn4hm7s 2 місяці тому
1:50 "what you see is what you get" valve moment
@shooterdefronvrps2
@shooterdefronvrps2 2 місяці тому
I think the oldest game that uses stairatep is the og doom, in some custom maps like jpcp map 3 I seen the narrow stair bein used so in case you failed a jump you can get back to the platforms
@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.
@TheRoboticFerret
@TheRoboticFerret 2 місяці тому
SHE'S BACK YEAHH
@lemuelwonah7076
@lemuelwonah7076 2 місяці тому
Welcome back!
@Xeogin
@Xeogin 2 місяці тому
This mechanic is used to replace ladders in a lot of Source games as a means of avoiding their jank. It's a bit better to use tiny ramps between the steps to help with sliding down the ladder though.
Why is the Out of Bounds so Terrifying?
22:19
The Cursed Judge
Переглядів 2,4 млн
The Stealth Archer Was Inevitable
24:16
Thane Bishop
Переглядів 419 тис.
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Переглядів 116 млн
Stray Kids "Lose My Breath (Feat. Charlie Puth)" M/V
02:53
JYP Entertainment
Переглядів 18 млн
Uhhhhh... Hmmmmmm...
8:09
Phoenix SC
Переглядів 297 тис.
Better Mountain Generators That Aren't Perlin Noise or Erosion
18:09
Josh's Channel
Переглядів 234 тис.
Optimizing my Game so it Runs on a Potato
19:02
Blargis
Переглядів 258 тис.
127 Ways to Make Your Friends Laugh in Minecraft
54:27
Skip the Tutorial
Переглядів 181 тис.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Переглядів 763 тис.
6 DEVS Compete to Make the BEST GAME for $10,000
38:22
Blackthornprod
Переглядів 245 тис.
A.I. Learns to Run (Creature Creator)
16:38
Code Bullet
Переглядів 5 млн
How to Fail at Open Worlds
3:36
Artindi
Переглядів 144 тис.
Unintentionally Unbeatable Levels in Gaming
21:18
C-Shift
Переглядів 397 тис.
Frog Prince Rush With Sonic And Knuckles
0:27
Intalord
Переглядів 14 млн