Unable to rotate to target using BP
I'm working on a tower defense type project and I am trying to get my 'Tower' to rotate to my target. The turret rotates around its socket correctly but the direction is slightly off (See gameplay screenshot)
I've tried adding 90 to my float (See Changes Screenshot) But this corrects on direction and offsets the other direction even more(Makes sense to me why)
Please have a look at my screenshots of what I have.This method that I am using used to work but I have changed a lot of things and my version twice and only realized now when adding more turrets to my game that it is not working correctly.
I have checked all my models and made sure they are all facing forward and center in scene.Same for my sockets.
I would really appreciate any help here.This seems like such a small problem for the progress I've made in this game its sooo frustrating!
Thank you in advance
asked Feb 22 '18 at 04:57 PM in Blueprint Scripting
I wish I knew what the problem was but this fixed it.I imported the files into Maya and exported them again.I zero'd all the axis again even tho they were.I reimported the mesh in UE4 which did not change anything.I then again recreated the BP and now it seems to work perfectly.Thanks everyone for you help.I think this might have been a combination of user error and some sort of bug from upgrading the Engine.
answered Feb 26 '18 at 01:50 PM
Hi Mad_Marza try FindLookAtRotation in this function start vector will be your turret location and target will be your target vector. you have to put this with a tick
answered Feb 26 '18 at 04:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here