camera shows its looking at player, but it really isnt?

so im trying to start a tank shooter top down game. I was able to get the base tank to move in WASD. I enabled some settings to allow it to rotate smoothly, however, the camera stopped looking at it. Now its just looking at the sky when you play. It shows its looking at it but it really isnt. Any ideas?

You have to set up your camera in the player pawn blueprint . When the game is started it just generates a random camera for the player since it hasn’t been setup yet. From the add panel in the blueprint add a camera and set it to your desired view and location. It is going to work.

1 Like

Hi Mate, I mimic your work in UE 4.27 and tried to resolve your problem and I got it.
Make sure you unticked " Use Pawn Control Rotation :black_large_square: ".
I’ve attached screenshots for reference.


Don’t worry about Parent class, either Character or Pawn both will work.

1 Like

thanks a lot!

so i tried what you said, and its now doing this. I also cant move the tank with wasd
and my charecter noclips around

do you have any clue on why this is happening?

thank you

thanks for the response! the camera is already inside the player blueprint and is still bugging

Can you share your Blueprint Snapshot,
After some time I will provide you my .uasset file, you can copy it in you project file explorer and observe it as reference.
Thanks!

update: i fixed the camera bug, however, whenever I move, the camera dosent follow the tank; rather its stuck to it. So pressing s would look like its going straight when its really going backwards. Any ideas? thank you :slight_smile:

ty for ur help

Try without break and make rotator.
And tell me what happen in couple of minutes

its pretty much the same as the video, just smoother (camera still buggy)

This is still working for me. Take a look.
Sorry for being late.






I am waiting for your response…

the only difference I saw was the pawn control rotation, but when i enabled it, the camera was focused on nothing and would bug out

which is why mine is disabled
image (21)

HOWEVER: i can tell by moving that the tanks controls are working when pawn control rotation is on, its just that the camera is pointing the complete wrong direction

any idea why that is?

I can’t understand why its not working for you.
Try to parent camera to Mesh, only testing purpose.
If tank not moving use print string for axis events to check whether they fires or not.

i put the camera under mesh, and also tried under the tank itself, and it didnt change anything sadly

You have not to use rotation so, disable use pawn control rotation.
If you have physics enabled, turn it off.
Sorry for unuseful replies.

no you have been very helpful! thank you :slight_smile: