Can I make my bullet smoothly turn toward the target?
Hi guys, I have been searching for the answer for almost 24 hour. I hope someone could help me with the problem.
This is a 2D game. I have a plane. The bullet will shoot at 90/-90 degree from the plane. (means it will initially shoot to the left or right)
Then it should keep travelling and smoothly turn its direction towards the target that it's going to shoot.
Here's the drawing that demonstrating the issue:
I have tried using direction combining with smoothDamp to control the angle, but didnt work.
I also tried different kinds of LookAt function, but things just go even more wrong.
And I've seen some similar questions using Quaternion, but I couldn't make it the way I want it to be.
Could someone please show me how to achieve this?
Thanks so much!!