Counter-Strike 2

Counter-Strike 2

View Stats:
sharkbyte1500 Mar 12, 2023 @ 11:47am
does anyone know how CSGOs ragdoll physics work exactly?
as someone who hopes to make their own games one day i find csgos ragdolls...intriguing

for one the ragdolls seem to fall much more realistically upon death compared to other games

kill someone against a wall they'll die slump against it in a sitting position whereas other games with ragdoll phystics they'd roll off the same wall and onto the floor.

when i see a dead body in csgo 99% of the time its laid in a position that someone would actually die in. other games however it can be a bit silly in games like fallout and the GTA games ive seen corpses that looked like they were trying to be human pretzels that doesnt really happen in CS

the physical actually seem to have weight i dont really know how to describe it.

im curious because i would like to impliment these tyes of rag doll physic into any game i make in the future
< >
Showing 1-4 of 4 comments
󠁳⁧⁧255h Mar 12, 2023 @ 11:53am 
Well actually its a result of fine tuning coliders and skeleton.

Basicly game has set of coliders attached to bones. Each colider has it's weight, friction. Bones do have restriction in terms of benging angles. I believe thats it.

Most modern game engines have set ups that do exactly that, but fine tuning this stuff can take qute alot of skill, experience and try/error.

Also i believe ragdoll stuff has some logic that disables physics for it after some time, so it stops from fidling around randomly.
Last edited by 󠁳⁧⁧255h; Mar 12, 2023 @ 11:54am
SirDJCat Mar 12, 2023 @ 11:59am 
Ragdolls are definitely hard to get right as 255h said. To get realistic ragdolls you need to know how to give realistic weight to each bone and restrict it from going in an inhuman way using joints. The reason they’re slumping against walls instead of flopping around is because (I’m just guessing) they’ve given a center mass (the chest/torso) so instead of all the bones moving around with the same weight, everything will follow with the center of mass. Both of those techniques combined make the ragdolls look good. There’s probably videos on YT that explain it better but that’s from my knowledge as an indie dev :)
jahpeg Apr 26, 2023 @ 8:05am 
they utilize high levels of friction, high levels of inertia to soften their collisions, have specific mass distribution across the body, and significant restrictions are in place on how quickly certain body parts are allowed to move. there's also a dramatic level of knockback that's scaled by how much the ragdoll weighs

if you're going to make a game though you shouldn't do most of those things because what you end up with is people collapsing like an arrangement of empty tesco bags rather than a human[gamebanana.com]

/sperging

Originally posted by sharkbyte1500:
when i see a dead body in csgo 99% of the time its laid in a position that someone would actually die in.
i'd also like to ask if you've so much as seen a fool get knocked out before
Last edited by jahpeg; Apr 26, 2023 @ 8:29am
Silly Billy Apr 26, 2023 @ 8:14am 
it works like balons
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Mar 12, 2023 @ 11:47am
Posts: 4