# Getting Player Position from blueprint class

**URL:** <https://forums.unrealengine.com/t/getting-player-position-from-blueprint-class/387410>\
**Category:** UI\
**Tags:** parent-class, unreal-engine, Widget, question, Blueprint\
**Created:** [March 9, 2017, 12:01pm UTC](https://forums.unrealengine.com/t/getting-player-position-from-blueprint-class/387410 "2017-03-09T12:01:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d180ecf9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d180ecf9](https://forums.unrealengine.com/u/anonymous_user_d180ecf9)\
**Post date:** [March 9, 2017, 12:01pm UTC](https://forums.unrealengine.com/t/getting-player-position-from-blueprint-class/387410/1 "2017-03-09T12:01:03Z")

</div>

Hi,  
I have a blueprint class, consisting of an mesh and a widget.

I would like to make the widget positioned relatively to my hand ( or the VRPawn, whatever ), like in tiltbrush.

I tried using the GetHandPositionAndOrientation → setWorldPosition (targetted at my widget), but when i move my hand the widget moves with it, but its positioned at its own local (0,0,0).

I can simply adjust the widget position to the player position in the class, BUT, i would like to teleport around the mesh. While teleporting, i would need to update the player’s position( or hand’s position ) which i can’t.

How are such problems solved ? Can i access the parent ( which is the level ), and update the player position/offset/location inside my class ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bd3dfdf6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bd3dfdf6](https://forums.unrealengine.com/u/anonymous_user_bd3dfdf6)\
**Post date:** [March 10, 2017, 8:09am UTC](https://forums.unrealengine.com/t/getting-player-position-from-blueprint-class/387410/2 "2017-03-10T08:09:56Z")

</div>

You need to add get player character location + hand position = world location of widget.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d180ecf9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d180ecf9](https://forums.unrealengine.com/u/anonymous_user_d180ecf9)\
**Post date:** [March 10, 2017, 12:32pm UTC](https://forums.unrealengine.com/t/getting-player-position-from-blueprint-class/387410/3 "2017-03-10T12:32:42Z")

</div>

Thank you, I’ll be at work on tuesday, if it works, i’ll mark it as the right anwser 🙂

Based on your anwser, the getHandPosition is relative to the class where it is called., and the getPlayerLocation gives me the offset( playerPos + classPivotPos) ?
