Closed vittorioromeo closed 11 months ago
Thank you for your contribution!
Here are the values I've settled on with Quest 2 controllers:
ViewmodelPosCustomOffsetX=7.0
ViewmodelPosCustomOffsetY=0.0
ViewmodelPosCustomOffsetZ=1.5
Maybe it'll save someone a minute.
Thanks for this experience!
First of all, thanks for working on this project! It's really nice to see Portal 2 from a different perspective. Can't wait until proper 6DOF and roomscale features are implemented. Feel free to look at or steal my implementation in QuakeVR: where the magic happens and a general search for "roomscale".
This PR introduces two changes:
It overhauls the config parsing logic -- now every field can be optional, and comes with an hardcoded default that is loaded if the field is missing or if a parsing failure occurs. Error messages have also been improved.
Adds two new config entries:
ViewmodelPosCustomOffset[XYZ]
andViewmodelAngCustomOffset[XYZ]
. These are custom offsets applied on top of the hardcoded ones, allowing players to tweak the position and orientation of the viewmodel. With my Quest Pro controllers, for example, a value ofViewmodelPosCustomOffsetX=5
is desirable.