Here Value is the horizontal input [-1 to 1] when the virtual joystick is moved horizontally.
CODE SNIPPET: https://pastebin.com/JWu7LTTt
I am trying to achieve that while moving the joystick the camera should stay in the same position while the character rotates as though the camera is locked onto the character.
In this video link: Controll and character behaviour in parachute sequence - Album on Imgur
You can see what I mean by watching the video, the joystick updates the character movement and rotation, and the side screen touch/swipe affects the controller rotation.
What I am trying to achieve is when the joystick is moved the controller updates based on joystick inputs. The above implementation works perfectly on the editor, but it doesn’t seem to work on some mobile devices. The rotation of the actor and the rotation of the controller are not synced.
PS: THE CAMERA BEHAVIOUR IS WITHOUT THE USE OF SPRING ARM I am using this plugin, but this doesn’t support the use of a spring arm as the plugin component itself behaves as a spring arm.
PLUGIN: Advanced Third Person Camera in Code Plugins - UE Marketplace
Questions
1: The logic seems fine, it works on the editor but fails on many devices. Why?
2: How well can I achieve this by using SpringArm instead of the plugin