r/unrealengine • u/LostLegacyDev • May 06 '19
Show Off Finally got some ragdoll that doesn't explode, an endeavor since the very beginning 2 years ago
3
u/bestjakeisbest May 06 '19
i mean sounds like a feature to me not a bug
2
u/LostLegacyDev May 06 '19
If I could stop the crashing maybe
1
u/salamandermang Jun 11 '19
I tried to say it was for my game, people didn't like it. Unrealistic in a hunting sim I guess
3
u/Dungstenium May 06 '19
Do you work on blueprint or C++? Ive seen yoir videos, it is looking really good the work you have been doing man!
4
u/LostLegacyDev May 06 '19
Thanks dude, I only blueprints and have only recently got into optimization standards for blueprints i.e. event tick is the devil be creative with overlaps and interfaces
3
May 06 '19
When u enter Sen’s for the first time lol. Also looks good man, I’m making something roughly similar, may we both succeed.
2
u/LostLegacyDev May 07 '19
Ayyye someone finally got the reference, praise the sun [T]/ don't hollow out there
1
u/chozabu Indie May 06 '19
Looks nice!
Though the camera lag means we dont really see the impact happen...
What I'd quite like to see is some serious slowmo (also, I think this would help stop things exploding)
you can enable it instantly at the same time as enabling ragdoll, or perhaps have it fade in with a timeline:
https://i.imgur.com/vGIBer3.png
Though, you would need a very short timeline (like 0.1s) to be able to appreicate the impact in slowmo.
You could also consider altering the way the camera/lag works during impact - but may not be needed with slomo
2
u/LostLegacyDev May 06 '19
That's a neat idea! I'll be sure to add it on initial impact and hitting the ground the first time thereafter, time to get the sparta memes rolling. The camera lag is due to the way I attach the capsule to the mesh when it simulates, stop immediate snapping there's a vinterp to but no parameters to regulate the interpolation time which needs to change based on velocity.
1
u/Carnival_Knowledge May 06 '19
Looks awesome. Just out of curiosity, what happens here at the :03 mark?
2
u/LostLegacyDev May 06 '19
I believe that is the giant swing hitting a home run and the camera man not keeping up
2
0
May 06 '19
[deleted]
11
u/LostLegacyDev May 06 '19 edited May 06 '19
Several things!
Substepping helped ground the simulation even when framerates were erratic
Removing excessive overlapping joints: I have 6 very close joints for the spine, even if collision detection is turned off between them or turned off entirely fast movement would rip them apart
Removing small overlapping joints: fingers were a huge reason why things would break, it just took one of those little shits to go rogue and the whole thing would implode
Weighting body parts to the average human %: this was a neat idea I didn't expect to work, if your characters weight totals 100kg it's easy to apply, I used this model then added 2-3 to linear/angular drag, the only change I made was to make the thighs a little lighter so the feet always plant which looked nicer to me
Adjusting constraints to bend the right way still have some tweaks left for the arms, the axes you don't want moving should have a small value like 1-5, compare organic deformation to a mechanical one, the organic one allows some elasticity under heavy stress where a mechanism would completely resist till it shatters
Also seems some overlaps are okay between large bodies that ignore each other but not small ones
Disable collision reaction for periphery joints like the belt plates
Kinematic Root joint that sets all bodies below except itself to simulate physics
Off the top of my head that's what I can remember I hope it helps
4
u/Tsukitsune May 06 '19
Exploding ragdoll sounds amazing