Godot Engine

Godot Engine

Manipulating 2d skeletons/Inverse Kinematics in code
Hey all,
So, I've got a character set up, using sprites for each body part, and I used the custom bones (Make Custom Bone(s) from Node(s).) Manipulating the bones works really well in the editor and is super cool for setting up animations. But I want to make the character animate a bit more procedurally, basically I want the arms to point at the mouse but moving the hands via code just moves them, without manipulating the skeleton at all... I've made the hands kinematicbodies and tried moving them that way which hasn't been working.

Is there a better way to do this using sprites and the custom bones or am I going to have to use Skeleton2D nodes, bones and polygons instead?
< >
Showing 1-1 of 1 comments
Lucius Caesar May 25, 2021 @ 1:51am 
Found out how to do this using animation trees and blendspaces, and then editing the blend position in the code. If anyone thinks they'll find it useful let me know and I'll go into more detail :)
Last edited by Lucius Caesar; May 25, 2021 @ 2:03am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: May 16, 2021 @ 2:15pm
Posts: 1