Download

Get VR MotionController world position and orientation

I’m struggling to get the world transform (position and orientation) for my right hand VR motion controller (I have a HTC Vive). I added two static mesh components to my pawn to show the hands in VR like this:

but now I’m failing to get the world (NOT the device coordinates, i.e. the coordinates relative to the room but rather the world coordinates relative to the 3D scene I’m in) position and orientation for my right hand controller. Using rightMeshComponent’s getWorldTransform isn’t working (I get wrong positions).

Can anybody help with this?

I don’t see any motion controller components in that image.

And in a common case ComponentWorldTransform = ComponentRelativeTransform * ParentActorOrRootComponentTransform. Or CombineTransforms blueprints node.