godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.83k stars 21.13k forks source link

2D Inverse Kinematics only work with the "Make Custom Bones" tool, not Bone2D nodes #25534

Open NathanLovato opened 5 years ago

NathanLovato commented 5 years ago

"Make IK Chain" doesn't work with Bone2D nodes. Even if you have a chain of Bone2Ds, you must first select them, go to the bones menu in the toolbar and click "Make Custom Bones From Nodes".

Instead, I would expect to:

  1. Select a chain of Bone2D nodes
  2. Open the bones menu in the toolbar, click "Make IK chain"

And get an IK chain.

Xrayez commented 5 years ago

It's either not documented enough or the feature is really missing. Having to use either the tool or the nodes in a different manner for different purposes is confusing.

NathanLovato commented 5 years ago

The feature is documented, it's just that's how it worked since Godot 2 and it's not been unified with the changes in the anim tools in Godot 3.1 yet

clayheaton commented 5 years ago

IMO, this is a bug. You can "Make IK Chain" with Bone2D nodes -- and they visually show the chain was created, with the root being yellow. It simply doesn't work. Dang, I just wasted a bunch of time thinking I had done something wrong. Glad I checked here.

AleryBerry commented 2 years ago

Is this solved? Still got the same issue in 2022.

Calinou commented 2 years ago

Is this solved? Still got the same issue in 2022.

By definition, if you still encounter this issue, it's not resolved yet :slightly_smiling_face:

Since 4.0 is entering feature freeze soon, this probably won't be addressed for 4.0 unless a motivated contributor does the required work.

RobTF commented 1 year ago

What is the deal with this? - I'm trying to get 2D skeleton animation working but nothing in 4.0 seems to match up with the latest version of the tutorial here (https://docs.godotengine.org/en/latest/tutorials/animation/cutout_animation.html#doc-cutout-animation). For one, the tutorial makes no mention of a Skeleton2D or Bone2D object, yet at least in 4.0 Beta 4 it seems to want to generate these. After that, I'm not even getting the option to make an IK chain.

Am I missing something or is this 2D skeleton feature simply not working/available?

Zireael07 commented 1 year ago

Most likely docs haven't been updated to match 4.0 yet

RobTF commented 1 year ago

Yes, I had a bit more of a play and it looks like 4.0 uses a concept of skeleton modifications? I messed about and got something resembling IK although somewhat messed up, which is likely just what I was doing. I'll keep hunting for details, but if there are any useful links anyone can share that would be really appreciated!