I have the same problem as the other person mentioned, but the topic was closed without an answer
Setting shot.direction
to global_transform.basis.z
does not work.
I also noticed that when my code is like this @9:51 in the video, which is when the teacher made the turret look at the last enemy, but the firing direction is still at Vector3.FORWARD
by default (as it should be as defined in projectile.script
).
However, my turret does not behave like so. The projectile does not shoot at Vector3.FORWARD
like in the video @9:51, but it will shoot the opposite direction of turret is looking.
I’m confused…and been stuck at this for days. Could you help me with this, please? Thank you very much!