Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 10 commits into from
Mar 23, 2024

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
7 of 8 checks passed
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