Godot Looking at Tutorial with bones : How to bones pose in Godot - Rotation towards AI target : RTS

Nanotech Gamedev
Nanotech Gamedev
1.4 هزار بار بازدید - 3 ماه پیش - Working on AI for my
Working on AI for my Rts project I found quite difficult to make bones rotates towards a given target, after some experimentation and research the solution was fairly easy once I understood the issue, here on this brief video I show you how to make a bone look towards a given global position using transforms and looking_at(), I decided to post this video because a lot of people give up on finding a solution with looking_at() and go for look_at() which doesn't work in our case as we are working with bones.

This basic idea can be used to create lerp functions to smoothly look at targets as well, because you now have a target which you can rotate towards using any number of interpolation methods, this is useful to making character heads turn, turrets and weapon systems for characters, on my previous projects I even used look_at() with a null helper to copy it's transform, this solution is much more simpler.
3 ماه پیش در تاریخ 1403/02/08 منتشر شده است.
1,413 بـار بازدید شده
... بیشتر