Vive Mocap Kit - Support

For some reason, Motion Controller components added in runtime to existing actor don’t work. It’s a bug which appeared in 4.22 and presists in 4.23. I changed “Spawn Vive Trackers” function in your project this way:


You also can modify BeginPlay event of BP_MotionController blueprint to use another mesh for trackers like here: https://sun9-48.userapi.com/c850420/v850420363/1bd9ee/sjbOg0UpdRg.jpg

It doesn’t affect the plugin itself. CaptureDevice component uses raw function (Get Tracked Device Position And Orientation) and don’t need motion controller components to work.

Unfortunately, non-HMD mode just doesn’t work after 4.21 by the same reason. I’m thinking about workaround, but it’ll be only implemented in the demo project for 4.23.

“Spawn Trackers” function spawns BP_Tracker actors and then updates their position in Tick using function “Get Tracked Device Position And Orientation” (just like Capture Device component). So, it avoids using Motion Controller component, and that’s why it works smoothly.