I’m trying to implement a transform widget in-game (mainly rotation). Unfortunately the existing editor one doesn’t seem like it can easily be used in-game.
So I’ve been looking at the UnrealWidget class to figure out how you translate cursor position to rotation. Specifically the “ConvertMouseMovementToAxisMovement” function.
https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Editor/UnrealEd/Private/UnrealWidget.cpp
I’ve translated the rotation part to blueprints. However rotation directions are often inverse after rotating the object around.
Any advice would be much appreciated. I’ve tried all sorts, including my own implementation but I keep coming up with the same problem of rotating in the wrong directions.
Thanks