Need help with an odd bug in my teleport

Hi,

I built some teleportation code for the htc vive. You use the touchpad to activate the teleporter.

https://playcanvas.com/project/405325/overview/htc-vive-teleport

It has a very strange bug. Although I am moving the camera before I move the controllers for some reason I see the controllers appear for a breif moment in the teleport location just before I teleport there. It’s as if the setOrigin function of the vrCamera is delayed for a frame or two before it updates.