Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.
How do I…
As the title says-my player hits a trigger, (just the top face on a simple 3d box in the the ground) to start a min game and I want him fixed looking straight ahead. When I hit the trigger head on so the camera is behind the player, it works fine.
However, if I approach and hit the trigger from the left or right or backwards so I see the side or front view of the player, the camera flips and fixes to a side or front view.
What is the expected result
Explain what should happen when you run the game.
What is the actual result
Explain what is happening instead, what is going wrong.
Related screenshots
Please include a screenshot of the full related events including both conditions and actions.
And screenshots to help showing us the issue.
Project files (optional)
Insert a minimal game showing your issue in a .zip or .rar.
The camera is keeping the angle you walked in with because the player angle is being frozen at that moment. Locking position is fine, but you also need to force a facing direction and then park the camera behind that facing, or a side or rear approach stays a side or rear view.
On the trigger, use Trigger once, and do this before you block movement:
Set the player’s rotation on the Y axis to a fixed yaw that faces the minigame (try 0, then 90, 180, or 270 until it matches “straight ahead”). Do not copy the current angle or the angle toward the camera.
Move the camera to a point behind that yaw: same X as the player, Z offset backward (flip the sign if it ends up in front), and a bit above the player. Then rotate the camera toward the player.
If you still have a follow or smooth-camera event running every frame, it will overwrite this on the next frame and snap back to the approach side. Put those follow actions under an inverted condition so they do not run while the minigame lock is on, and only run the fixed camera actions during the minigame.
Once the yaw and the backward offset match, hitting the trigger from the left, right, or behind should all end on the same view.