bdec
(bdec)
April 16, 2018, 6:04pm
10
Thor_DDI:
This is pretty basic stuff, if you want to do it within the MotionControllerPawn you simply do this:
https://i.imgur.com/aCFhl6X.jpg
There are two variables in the MotionControllerPawn called “Left Controller” and “Right Controller”, when the controllers are spawned these variables get filled with references to the motion controllers. You can then use these references to do all kinds of things. In the image I’m getting the world location of the motion controller’s scene node and the actual mesh of the hand. But you can also get the location of any of the other components of the motion controllers.
Now if you want to get this information from outside the MotionControllerPawn then you simply need to cast to it like so:
https://i.imgur.com/MvivkwT.jpg
Here it’s nearly the same as the first image but I first get the player pawn then cast to to the MotionControllerPawn and from there we can get Left Controller and so on.
Thanks for the update! I tried to follow your example, but when connecting the Cast To Motion Controller Component to the “Left Controller” node, I can’t connect those two. I get the following
error message :
“Motion controller object reference is not compatible with motion controller pawn object rerference”
Thanks, I’ll also investigate in this direction!