An Udon API function to recenter the player to the station's Enter Transform. This would recenter the player's XZ position plane to the station's Enter Transform. An optional parameter (or secondary function) would be given to recenter the player's view as the new reference forward direction.
Ideally a call like
station.RecenterLocalPlayer(bool reorientRotation = true)
would by default do both position and rotation realignment but
reorientRotation
can be set to
false
to only handle positional recentering (caused by play-space movement).
This would alleviate the problem of a player getting into a vehicle or mounting any station in the wrong direction or moving too much, requiring them to leave and re-enter the station to recenter themselves. This would also give the opportunity for a custom station based character controller to utilize play-space movement as a mobility option without having the feet IK get stuck in one position for VR.