Godot Version
4.4.1
Question
I followed the tutorial https://www.youtube.com/watch?v=0MHY2TDeMLM but since it is for 4.0 it seems it doesn’t work for 4.4
My game: Paki / my action adventure · GitLab
4.4.1
I followed the tutorial https://www.youtube.com/watch?v=0MHY2TDeMLM but since it is for 4.0 it seems it doesn’t work for 4.4
My game: Paki / my action adventure · GitLab
It probably has something to do with SkeletonModifiers. See if this reply has the answers you’re looking for (the link should point you to a comment below the youtube video).
I copied the code from his repo. In fact the example he gave as is doesn’t work in 4.4
I should’ve just copied and pasted the youtube comment. Here it is:
The code doesn’t work anymore because get_bone_global_pose() returns the pose from BEFORE any modifiers are applied (like the ragdoll simulation, which is now a SkeletonModifier). You either need to move the code into the PhysicalBoneSimulator’s modification_processed() function, or just get the positions directly, like this:
var target_transform: Transform3D = target_skeleton.global_transform * >target_skeleton.get_bone_global_pose(b.get_bone_id()) * b.body_offset
Then simply compare it to the global transform of the physical bone:
var current_transform: Transform3D = b.global_transform
Also, if you’re using Jolt, spring constraints are actually implemented, so you don’t need to calculate them manually anymore.
does it means that, if I am using Jolt, I can simply add to b.linear_velocity and b.angular_velocity?
Can someone just give me a full example of a animated ragdoll for 4.4? Whatever they used for it in 4.0 broke in 4.3 in subtle ways and I can’t manage to make it work
Like an actual project that I can clone and run
ok there wass a pr exactly for that and it works