In the current engine plugin the positions are reported relative to your hmd/controller origin.
With that in mind, there are couple of ways to do this:
- Simply adding whatever you query e.g. palm postion to your hmd position should give you its world location
- Parent something like a scene node to the skeletal mesh that is being tracked then query it’s world location
- There should be a debug hand actor that does something like this in the leap plugin content, see the assets found under
Plugins/LeapMotion/Content/Blueprints/Utilityfor blueprints. - Request access to the preview plugin via forum pm, which has simpler API