I want to create a rotational dial in Unreal Engine for a VR project. How can I restrict the grab functionality to only allow rotational movement, preventing any translation (up, down, left, or right)? I prefer to implement this without using Blueprints.
You can attach a hand mesh to the object being grabbed, and then use FindLookAtRotation between the object and the actual position of the controller (invisible) to get the angle by which you want to rotate the object.
Or you can use the rotation of the controller around its axis as a master (this is suitable for small rotating switches).