Godot Version
v4.5.1
Question
Hi!
I’m working on a 2D-game where I want my enemies to become “ragdolls” after death, but I can’t seem to make them stay “ragdoll”.
My current plan was to replace enemy CharacterBody2D with a RigidBody2D after death. This works, but the RigidBody2D is only “ragdoll” for maybe the first ~.5 seconds after introduced to the level, and afterwards it becomes as solid as the ground underneath it. While I expected that I should be able to push the corpse around with my player?
This is my “corpse” tree structure (it is just 1 simple CapsuleShape):
EnemyCorpse (RigidBody2D)
├── AnimatedSprite2D
│── AnimationPlayer
└── CollisionShape2D
- The corpse Collision Layer/Mask corresponds with what the player can detect and interact with.
- I have turned off all optional “Deactivation” on my RigidBody (Sleeping, Can Sleep, Lock Rotation, Freeze)
- I have tweaked and lowered various physics-settings, but since the corpse detects collision with the player just the first moment, I suspect it is something else I am missing.
Can you help?
Let me know if you need more information, like code etc!