cancel
Showing results for 
Search instead for 
Did you mean: 

HandGameplay example Log Nearby Interactables trouble

DreadHeadFred
Protege

I'm trying to understand the object grabbing example and trying to duplicate the Interactable Brick on the VRTemplate Pistol. Grabbing is working and if I don't have a grab pose assigned on it, I can grab on to it anywhere. But when I use the LogHand macro, which implements the Log Nearby Interactables function and assign the hand pose and relative hand transform from the log, the pistol is not positioned correctly. 

I don't see any documentation on how to do this correctly so I'm not even sure if I am recording it correctly.  I created an interactable blue print and added the skeletal mesh of the pistol and set it in the level. Then I run and place my hand where I want it to be and press the log key.  Anybody have a clue if this is right and/or how to record the hand pose and position correctly?

1 ACCEPTED SOLUTION

Accepted Solutions

DreadHeadFred
Protege

Guess not too many have messed around with this example yet. I wanted to update that I have figured it out in case anyone else runs into this. I dove deep into the c++ code to find out what could be wrong and the fix was simple really. On the HandsCharacterBase blueprint in the event graph, it's passing in LeftSelector and RightSelector as the reference. For some reason these are offset from the hands and I didn't want to change their transform to fix this issue. So I duplicated and renamed them and set their transforms to 0. Now when logging the position the transform string is correct. 

View solution in original post

1 REPLY 1

DreadHeadFred
Protege

Guess not too many have messed around with this example yet. I wanted to update that I have figured it out in case anyone else runs into this. I dove deep into the c++ code to find out what could be wrong and the fix was simple really. On the HandsCharacterBase blueprint in the event graph, it's passing in LeftSelector and RightSelector as the reference. For some reason these are offset from the hands and I didn't want to change their transform to fix this issue. So I duplicated and renamed them and set their transforms to 0. Now when logging the position the transform string is correct.