Leomerya12
(Leomerya12)
January 10, 2024, 1:58am
1
I’ve been wrestling with this issue and scouring the forums for a fix.
The problem I face is that I want a player-controlled camera to follow the transforms of a vehicular parent (a train in this case.)
Cyberpunk 2077 does this very well.
So, how can I allow the player to control the camera while the camera also respects the rotation of the vehicle it’s attached to.
In the video, you can see that:
The first half, PAWN CONTROLLER ROTATION is disabled and the camera honors the train’s rotation.
Once this is enabled, the camera completely ignores the rotation of the train.
Leomerya12
(Leomerya12)
January 10, 2024, 3:22am
2
Okay, so the FINDING the solution is almost always harder than the solution, itself.
This is frustratingly true.
All I needed to do was “ADD RELATIVE ROTATION” to the axis outputs of the controller while “USE PAWN CONTROLLER ROTATION” is disabled.
That’s it.
I hope my pain has spared someone the same.
EDIT: Other things of note:
There are three versions of this function: Local, Relative, World. Local moves in orbit about/round the object pivot, Relative is stationed directly on the pivot and acts the most “normal” of the three, World is weird. Not exactly sure what is going on.
Anytime you possess another actor, that actor will use whatever Action Mappings your previous character is using.
Epic needs better documentation.
system
(system)
Closed
March 7, 2024, 7:49am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.