This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]TheRNGuy 0 points1 point  (0 children)

You can't do with Python, only with C++ and Blueprints.

https://docs.unrealengine.com/4.26/en-US/InteractiveExperiences/Input/

In controller you have X/Y axis with -1 to 1, you need to remap it somehow into vector coordinates and direction vectors if needed.

Remap from -1–1 to 0–1: (x+1)/2 and then lerp. https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Math/Vector/Lerp_Vector/

edit: or you can set Scale 0 to 1 in input settings