Cant Rotate an Actor after respawning it

Hey there,

im trying an udemy course actualy. In this course we created a ball within a level. The level is having 2 Stages with 2 Spawnpoints and loosing Condition. The second Stage (platform) is facing the opposite direction then the first Stage. So i gotta turn the pawn.

When im spawning everything looks correct. I can play the game and roll through the Portal.

After spawning my ball is facing the wrong direction. (The Spawnpoints are 2 different Player Starts). The Direction of the Player Start is correct. Im Trying to change the rotation after the Spawn asim also setting the velocity there, so the ball wont roll after spawn.

I tried changing the rotation with set relative and rotation and set world rotation. Nothing happens.

Then i read that the rotation is controlled via the player controller, so i am setting the rotation with set control rotation and its working. BUT just for the camera. Now the camera is facing the right direction but my movement is inverted and the ball is always facing the wrong direction.

How can i solve this problem?

Thanks for your fast reply. The problem is that im having 2 Player Starts. I tried using get all actors of class with tag and tagged the second spawn point with the tag im using. But the pawn still facing the wrong direction.

It was an example. You need to pass in the roation of the player start of where the character spawned from

Cant get it to work. Just an Information by the side. Im going through an course from udemy and all the controlls for the ball are made in the player controller and the pawn is seperate.

Cause as i said, the camera turns when i set the control rotation btu the ball keeps moving in the opposite directions. ANy idea? Im totally stuck.

Where is the character spawning taking place?
Is it being spawned automatically from the GameMode “Default Pawn Class” or is that set to None and you are doing it yourself in a blueprint?

Im using a checkpoint method the set the checkpoints. So the player Start is obvious i guess. the Checkpoint is being set with a variable and get the information from the player start in the world.

If the checkpoint where you spawn your actor then try passing in it’s rotation value to the set control rotation.

I already tried this way if i get u correct. After respawn is should get the player start wit get all actors of class with tag. Tag was correct and i set the rotation from the player start and get the player controller.

But i guess the problem could occur cause in the tutorial the teacher created a ball as blueprint (pawn) with the camera and the ball himself. In the player controller he created the controlls to let the ball roll via add torque radiants. An it makes kinda sense, cause as im getting the rotation from the player controller the camera view is set correct but the controlls are inverted. so if i press w the ball rolls into the direction as i would push s, same with a and d. (controls are fired via the axis mapping and an input axis node in the player controller). Sorry for some wrong spellings,english is not my mother language and im pretty new to the unreal engine :).

THX already for all your replies :wink: