Inverse Kinematics Animation in Godot (Tutorial)
Вставка
- Опубліковано 10 чер 2024
- Discover 2D Animations in Godot 4, explore Inverse Kinematics vs. Forward Kinematics, and compare Unity to Godot. Join our indie game dev team on this journey to switch our platformer to Godot.
Check out Oakleys Adventure on Android and iOS:
📱 Android:
play.google.com/store/apps/de...
🍏 iOS:
apps.apple.com/at/app/oakleys...
#indiedev #gamedevelopment #UnityToGodot #indiegame #gamedev #godot #Unity
I was having issues with flipping the character when using IK, have you found a workaround for that?
Yes, and we needed that workaround in our latest Video. However we are not explicitly mentioning it:
You can use a SubViewport as a parent for your IK character.
Move your character roughly in the middle of the screen (use the inspector X and Y, since the Move tool is a bit buggy in the viewport)
Then you create a Sprite and use it as the texture for the ViewPort. That means you project what's inside the Viewport to just one single sprite
Then you can flip the Sprite using the flip_h function.
All of that needs to be part of your moveable character, so it's like an in-between layer.
Performance wise it is a really bad workaround, but it is the only one that we found that worked for us, so we wait until it is patched.
There already is a pull request for this issue:
github.com/godotengine/godot/pull/81051
Does scale.x *= -1 work?
ı remember using this method but I wasnt using IK that time.
That intro goes hard XD
Guess who is on the dark side here.
I'd watch it
that intro actually went so hard i wasn't prepared 😭
Therapist: Godot Grievous doesn't exist, he cant hurt you.
Godot Grievous:
Bro created GigaGodot, the Ultimate Four-Saber-Arms robot made of Godot Icons.
It's not really a tutorial? You explained what it is, but not really how 😅
Worst tutorial ever.
Great intro!
Dominik Caprese. No, wait. Too catchy. That is mine
i'm a simple man
i saw godot grievous
i subscribed 😂
Do you have full video on how you animate the chief character?
I'm happy that Godot is better than I thought. Great tutorial, I learnt quite a few things. :) Btw, what song was played in the beginning after the 10/10 intro? 😂
Give him Halo-esque Spartan armor and call him Master Chef.
Pippo Pizzoccheri!
Pippo is the diminutive of Filippo or Giuseppe.
bro i still have no idea how to set up ik 2d bones from empty project ?
You forgot Alberto (Alboyto?) Alfredo. The best one!
Excelent tutorial
Hi thanks so much for the video. would it be possible you could share a link to the project file? I've been trying so hard to create the Skelton of an arm really similar to this one and have it function but keep running into issues. I would be so grateful to see how it is set up here so I can learn for my project. thank you very much
Stefan Spaghetti, can't get much more italian cuisine than that
Except the fact that's actually a really useful video, how did you manage to keep the markers for your inverse kinematic anchored to the body of the character?? Whenever I try to use some node2D or marker2D as targets for IK they just wonder around if I try to move them
Thank you for your feedback!
When you create the IK for an Arm you have a rotation point for the upperArm and the lowerArm.when you place the target in the level of thr arm your target will rotate infinitely
You need to place it at least in the parent of the limb you want to rotate, so in that example on the body to ensure that its own position would not be affected by the rotation of the limb it controls
@@FiddleStoneGames Yeah, the thing I'm not getting is how to stick the target node position to the limb itself, like you did in the flamingo one, which armtarget position even if modified, still sticks to the original arm. When I do it instead, the target just goes everywhere I place it.
@@assassino-ug9rehi there, did you figure this out? trying to work out the same thing and running into issues. would be so grateful if you have a working project you could link to!
@@MJ-ev4nw no sorry man, i just decided to adopt forward kinematics instead, it was just faster for me
Wie macht man Gelenke und animiert sie damit? Ich verstehe das "Tutorial" nicht
You can make a tutorial for a survival io style game in godot
What about Al Dente?
Liking and commenting based on the intro alone
Sub'd due to the intro!
Meatball Mike
IF inverse kinematic were to be fixed in 4.2/4.3
Would it break your animation? :x
That alone wouldn't break our animations because our workaround is to not use the problematic usecase :)
However, since the AnimationTree and the AnimationPlayer get merged to be just one Node (AnimationMixer) in 4.2, switching now will definitely break the animations
We will wait until 4.2 leaves the testing phase, and then there will probably be a migration guide to minimize the risk of breaking anything (as they did for 4.1)
@@FiddleStoneGames Has this got any better/
很棒,你讲了6分多钟,但我还是不知道怎么绑定一个ik。
Pedro Pomodore! 🤣
That's a great one 😁
Please 3d mouth riging 😢😢
Why I got BJP ad here😂?