In my project the player can “grab” objects which attach themselves to the camera’s view-port. After messing around with an HMD, we found that we needed to offset the grabbed actor’s position based on the position of the HMD - after some vector math we were able to achieve this. However, because we have to set the actor’s position on tick rather than attach it to the camera, there is a noticeable lag in the actor’s tracking to the viewport (looks to be 1 frame).
After some research I found this question which notes that the actor (character, in this case) is in a different tick group than the camera, therefore the function is delayed. Looking into the .cpp of character I see that it is of the “TG_PrePhysics” group, but I’m not sure if it matters as HMD seems to be handled separately anyways. I doubt changing it would actually would solve the problem.
Attaching the actor to the camera works with zero latency but I still need to offset the HMD position without latency somehow. Is there anyway to either reduce the lag of set actor position on tick or create a HMD component I can attach to?