Unity C# : Head LookAt with using IK

  Рет қаралды 14,491

about game making

about game making

Күн бұрын

Пікірлер: 49
@MultiToto07
@MultiToto07 4 ай бұрын
Thank you for the video ! Note for people who got their avatar to do not look correctly to the target : check that your avatar bones are properly set My avatar head had a bone set to neck_twist_01, which causes the avatar to look in a wrong direction I set it to neck_twist_02 and now it works great
@racherim
@racherim Жыл бұрын
Thank you so much!! it saved me so much time calculating and coding those skeleton heads.
@aboutgamemaking
@aboutgamemaking Жыл бұрын
I'm very happy that the tutorial really helps you!
@박지윤-g3d
@박지윤-g3d 9 ай бұрын
와 감사합니다ㅠㅠㅠ 진짜 찾던거였는데, 설명도 너무 친절하고 자세하게 해주셔서 많이 배웠습니다!
@aboutgamemaking
@aboutgamemaking 9 ай бұрын
이 방법은 기본적인 IK원리에 대해 설명했습니다. 간단하게 사용하신다면 스크립트를 통해 제어하시거나, 다양하게 IK를 구현하시려면 신기능중 하나인 Animation Rigging을 쓰시면 됩니다.
@박지윤-g3d
@박지윤-g3d 8 ай бұрын
답변 감사합니다! 말씀해주신 기능도 처음들어보는건데 공부 해봐야겠네요..!
@kcatholywater7134
@kcatholywater7134 Жыл бұрын
I’m sorry but how does it know if it’s the head bone it should move while you didn’t tell which bone to rotate
@deslangan3157
@deslangan3157 Жыл бұрын
For unity to know which part is the head you need make your model into an avatar. There's a good tutorial by Unity themselves that explains how to do it, look up "Humanoid Avatars - Unity Official Tutorials".
@NutBuster99
@NutBuster99 8 ай бұрын
If your character isn't humanoid but generic , just add a reference to the Head transform of the character, and implement a Quaternion Lerp/Slerp to rotate the generic model's head in Late Update itself as a workaround
@aboutgamemaking
@aboutgamemaking 8 ай бұрын
The reason why head bone is rotating and and tracking the target, it is the character is using the Humanoid. As you import the rigged characer and open humanoid bone setting, you will confirm that all bones include head are properly set each part of character's joint automatically. When the IK function is enabled, the head is basically tracking the target.
@forcepower7116
@forcepower7116 2 жыл бұрын
Nice Works really Well and gives my npcs some Character
@ziwan9771
@ziwan9771 Жыл бұрын
Thanks ,That's what I'm looking for~
@soybean94
@soybean94 2 жыл бұрын
Thank you, very inspiring to me
@aboutgamemaking
@aboutgamemaking 2 жыл бұрын
Thank you for watching!
@zzuguriya
@zzuguriya Жыл бұрын
Does it only work on an asset made with humanoid settings? Is Generic possible?
@aboutgamemaking
@aboutgamemaking Жыл бұрын
Yes, this method only works with the humanoid rig.
@zzuguriya
@zzuguriya Жыл бұрын
@@aboutgamemaking Thanks! :)
@aboutgamemaking
@aboutgamemaking Жыл бұрын
I did the same feature on Generic rigged character a few years ago. When I find it, I probably make the video later. :)
@DwipMakwana
@DwipMakwana 2 жыл бұрын
Thanks for the help!
@aboutgamemaking
@aboutgamemaking 2 жыл бұрын
No Problem!!
@CoKeHQ1
@CoKeHQ1 5 ай бұрын
wonder how to do this with generic rigs, the unity manual of IK said it works with humanoid. I don't like to use humanoid when not necessary as it has it's limits if don't need the re targeting for different humanoid bodies. wish I found a way to do this for let's say some goblins, deers, bears and what ever like dragons and it just works for all the same way.
@HalfBright
@HalfBright Жыл бұрын
Mission Passed , respect +++++++++++++++++++++++++💓
@aboutgamemaking
@aboutgamemaking Жыл бұрын
Good!
@calvinms7503
@calvinms7503 2 жыл бұрын
Thank you
@aboutgamemaking
@aboutgamemaking 2 жыл бұрын
You are welcome!
@zainajmal6180
@zainajmal6180 3 жыл бұрын
AMAZAING WORK GREAT
@Togueznake
@Togueznake Жыл бұрын
Can you put script link please?
@Togueznake
@Togueznake Жыл бұрын
???
@son2isaki
@son2isaki 2 жыл бұрын
thank u !!
@aboutgamemaking
@aboutgamemaking 2 жыл бұрын
No, I thank you for watching! :)
@MalikGames524
@MalikGames524 2 жыл бұрын
hello about game making i have some serious concerns please tell how its get and rotate only head instead of any other bone in boby and how i use it in aimimg up and down please if you are able to do that please replay or make video on aim up and down by using ik system
@aboutgamemaking
@aboutgamemaking 2 жыл бұрын
I don't understand what is your saying. :( Since the tutorial is dealing about the head is aiming the target which is using IK. Can you tell me more specific? Or describe what is your situation on your game project.
@Togueznake
@Togueznake Жыл бұрын
please put script link
@aboutgamemaking
@aboutgamemaking Жыл бұрын
Sorry, I'm not sharing scripts. What I want you is following the tutorial and understanding functions. Just take around 10 minutes, then you will get your efforts.
@Togueznake
@Togueznake Жыл бұрын
@@aboutgamemaking oh nevermind, i already find the script in sites
@puppynow
@puppynow Жыл бұрын
​@@Togueznakesend
@zainajmal6180
@zainajmal6180 3 жыл бұрын
can you please tell me how you translate your voice into English ?
@aboutgamemaking
@aboutgamemaking 3 жыл бұрын
I'm using google translate, usually.
@zainajmal6180
@zainajmal6180 3 жыл бұрын
@@aboutgamemaking you manually write text and then record sound and place it into video?
@aboutgamemaking
@aboutgamemaking 3 жыл бұрын
@@zainajmal6180 Yes!
@danieljohnson1167
@danieljohnson1167 3 жыл бұрын
It's strange, I did all the steps you made, but the head of my character is not moving to the target direction. Could it be because my character's idle animation has keyframes in the head bone??
@aboutgamemaking
@aboutgamemaking 3 жыл бұрын
I think it does not matter, IK animation is like override the FK animation. Check your project settings (Rigs, Animator and others) and find something that you forgot.
@BobMarkey2
@BobMarkey2 2 жыл бұрын
its probably because the character skeleton needs to be set to humanoid for this to work and not set to generic. you can find this setting by selecting the mesh file in project view and clicking the rig tab in the inspector.
@BFL.
@BFL. 3 жыл бұрын
How to make a system to climb
@aboutgamemaking
@aboutgamemaking 3 жыл бұрын
Do you mean how to make the character climbs the wall?
@raelroque5595
@raelroque5595 Жыл бұрын
dummypivot its not creating as child, why? i did extcly the same
@aboutgamemaking
@aboutgamemaking Жыл бұрын
Check the code line that Set parent. See your code carefully, or you can find the problem with Debug.Log. :) See the tutorial at 06:37 and check your script where you attach to the GameObject.
@raelroque5595
@raelroque5595 Жыл бұрын
@@aboutgamemaking you did not put set parent, you transform.parent
@zainajmal6180
@zainajmal6180 3 жыл бұрын
love for pak china support
Unity C# : Eye movements for Anime Character
16:01
about game making
Рет қаралды 4,6 М.
Intro to Animation Rigging & Procedural Animation in Unity
13:33
iHeartGameDev
Рет қаралды 203 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Using IK to Improve Animations in Unity
12:05
Game Dev Guide
Рет қаралды 68 М.
Look-At IK in Unity
19:58
PabloMakes
Рет қаралды 13 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
Unity Optimization : reducing 3D objects' draw calls
14:53
about game making
Рет қаралды 73 М.
Unity C# : Free Look Camera Control Part 1 : Rotation on Mobile Devices
11:28
Creating procedural walk movement | Prototype Series
5:50
Flanking and Random Sequences - Unity/C# - Game AI Mastery Part 14
27:19
Unlocking The Power Of Unity's Scriptable Render Pipeline
21:05
Game Dev Guide
Рет қаралды 227 М.