Skip to content

feat(ragdoll): Add player ragdoll state + corpse physics#932

Merged
zicklag merged 10 commits intofishfolk:mainfrom
MaxCWhitehead:ragdoll
Mar 23, 2024
Merged

feat(ragdoll): Add player ragdoll state + corpse physics#932
zicklag merged 10 commits intofishfolk:mainfrom
MaxCWhitehead:ragdoll

Conversation

@MaxCWhitehead
Copy link
Collaborator

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).

ragdoll_twitch.mov
ragdoll_sproinger2.mov
ragdoll_death1.mov

@zicklag zicklag added this pull request to the merge queue Mar 23, 2024
Merged via the queue into fishfolk:main with commit 1b7f1b9 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants