I have an issue where the lock on system causes the player to lock on to the target at a 90 degree angle to the RIGHT.
This did not happen previously, and I have not touched that piece of code since I implemented it.
The bizarre thing is that on some levels, the player locks straight onto the target without any issue, but on a couple different levels the camera is faced 90 degrees.
I have created a new empty level, and the problem persists.
The target does not appear to be the issue.
I suspect it does have something to do with the PlayerStart. When I delete PlayStart and play from viewport location, the player locks on at 90 degrees to the LEFT.
Any suggestions would be appreciated. I am at a loss here.
Quick update:
This issue only happens in VR Preview mode. When I play the game in viewport mode, there is no issue and the player lock straight on to the target actor.
I wonder what it is that does that.
Final Update:
The issue seems to be fixed.
I unchecked “Use controller Rotation Yaw” under the main Actor object.
I checked it again just to see if the issue comes back, and it did not, the target locks straight on as intended.
I also deleted a save game I had, but the deletion of the save game did not fix the issue right away.
Why the player kept locking on to the enemy actor with the HMD facing 90 degrees to the side remains a mystery to me. (And why it only occurred on some levels)
Conclusion:
There could have been a bug in either the engine or the Oculus headset “Reset View” function that I was using.
Right now, I have only “Use Controller Desired Rotation” checked for both the main actor and for Character Movement component.

