Hello, target rotation for spring arm component? i want change rotation in runtime, but rotation return to the start rotation
VisAgilis
(Vis Agilis)
September 17, 2024, 2:45pm
2
Could you provide the screenshots of the related parts of your code, along with the values of variables / inputs during runtime you’re using there?
Everynone
(Everynone)
September 17, 2024, 2:47pm
3
Chances are the springarm is inheriting Control Rotation.
either rotate the Control Rotation of the player controller instead of the springarm - often a better solution but it depends on what we’re working with. Details:
The whole idea about rotating characters IS to use Control Rotation. Your script overrides the natural way characters, cameras and movement components work within the intended framework. Hence the clash - Control Rotation tries to do its thing and you force something else with Set Actor Rotation. You’re, potentially, robbing yourself of the benefits of the existing system.
Assuming you’re after smoother rotation - consider interpolating Control Rotation itself instead:
the Player Controlle…