Steam VR Snap Turn while holding Throwable object not working
Im having a problem with Steam VR. I can snap turn with my controller but as soon as I grab an object the snap turn doesn't work. It does work when I hold the object in the other hand. So lets say I have my Snap Turn asigned to my Right Controller. If I hold the Throwable Object with my Left Hand the snap turn on the right controller does work. But when I hold it in my right hand the snap turn doesn't work anymore. However my right controller also has a Jump button and that is still working while holding the object.
Any idea what is going on? Am I doing something wrong?
Answer by frenzon · May 27, 2020 at 03:27 AM
It looks like snap turning while holding an item is intentionally disabled in SteamVR/InteractionSystem/SnapTurn/SnapTurn.cs at Line #67:
bool rightHandValid = player.rightHand.currentAttachedObject == null || (player.rightHand.currentAttachedObject != null && player.rightHand.currentAttachedTeleportManager != null && player.rightHand.currentAttachedTeleportManager.teleportAllowed);You can make it work by replacing those lines with
bool rightHandValid = true;(And do the same for the left hand if you want)
Your answer
Follow this Question
Related Questions
How to use SteamVR plugin when using a wireless adapter from HTC on the Vive 0 Answers
How to interact with UI element and how to access scrollview in VR? 0 Answers
Steam VR HTC Vive: When I change scenes, the Vive controller is no longer tracking positions. 1 Answer
Steam VR Teleport Reticle Off Set? 0 Answers
Spawn object in hand and bind it to hand transform? 2 Answers