feat(ragdoll): Add player ragdoll state + corpse physics#932
Merged
zicklag merged 10 commits intofishfolk:mainfrom Mar 23, 2024
Merged
feat(ragdoll): Add player ragdoll state + corpse physics#932zicklag merged 10 commits intofishfolk:mainfrom
zicklag merged 10 commits intofishfolk:mainfrom
Conversation
Press F / right bumper to ragdoll player.
zicklag
approved these changes
Mar 23, 2024
MaxCWhitehead
added a commit
to MaxCWhitehead/jumpy
that referenced
this pull request
Mar 24, 2024
### Ragdoll State Player may toggle ragdoll state with `F` or `Right bumper`. - player body switches to capsule and simulates physics in ragdoll state. - movement during ragdoll twitches the body slightly, small velocity + animation change. ### Minor Related Fixes - set position with respect to parent no longer forced to 0 for all objects. Used this to tweak capsule position. - Attached entities now rotate with parent. ### Animation This will need another pass, for now I re-used some stuff we have. Making the corpse more obviously dead would be good (though I guess being able to reasonably play dead may also be amusing). https://github.com/fishfolk/jumpy/assets/35712032/9bdcbc0c-146b-4339-a7bd-4ed1ca1bb44d https://github.com/fishfolk/jumpy/assets/35712032/f9004638-fc03-4ee6-8e6f-0f7f0ab1f3a3 https://github.com/fishfolk/jumpy/assets/35712032/5407bcf3-e9c9-4aa3-83e1-ba95adc3fcac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ragdoll State
Player may toggle ragdoll state with
ForRight bumper.Minor Related Fixes
Animation
This will need another pass, for now I re-used some stuff we have. Making the corpse more obviously dead would be good (though I guess being able to reasonably play dead may also be amusing).
ragdoll_twitch.mov
ragdoll_sproinger2.mov
ragdoll_death1.mov