Closed giabeni closed 4 months ago
Tks @giabeni Same issue with 3.3.3.
I seem to be having the same issue. My ragdoll is only switched on when the AI is dead, and I just discovered that the physical bones are otherwise stuck at the origin, where I instanced the AI, and are invisible but perfectly collidable.
Godot version
3.4.beta4
System information
Windows 10, GLES3, Intel UHD 620
Issue description
Hello guys! I'm making some tests with ragdolls and they started pretty promising. But, now I'm struggling with something that I'm very convinced to be a bug...
VIDEO DEMO: https://youtu.be/YWCvQ84bPNw
What I want:
Apply an impulse to the bone clicked by the mouse.
How am I doing:
intersect_ray()
from the camera to the mouse positionCode:
What's the problem?
Take a look at the video! There are 2 problems:
The Physical Bones don't follow the bones transforms (animations and move_and_slide) until I call
skeleton.physical_bones_start_simulation([...])
. So, to detect the bone, I have to first click "outside" the mesh, where the Physical Bones got frozen. P.S. Maybe, it shows that #24359 and #34313 may not be fully resolved by PR #36008), from @AndreaCatania .After I start the simulation of at least one bone, the Physical Bones transforms begins to follow the bones (and the animations). However, no other bone gets detected by the raycasts, no more. Only those that I've started simulating (and its children).
You can see that after I hit the character's hand, the bones capsules start moving but I can't detect other bones except the hand (the pink ball is always placed in the floor).
If I simulate all bones, though, It works. But obviously the character falls as a proper ragdoll...(watch the end of the first simulation)
Summaryzing:
In the beginning, no bone has started simulation, and I can detect any bone with the raycast. Then, when I start the simulation of one, no longer can I detect other bones except this one.
What have I checked:
Thanks in advance!
Steps to reproduce
Controls:
WASD: moves player Arrow keys: move camera Middle-Click + Mouse motion: rotates camera Space: Start simulation for all bones Space again: Restart scene
Minimal reproduction project
ragdoll-tests.zip