Need help with an odd bug in my teleport


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

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.