Fix handheld tools (#481)

* Removed unused colliders from handheld tools to prevent the player from flying around in certain places

* Bump version
This commit is contained in:
artum 2021-11-16 21:41:13 +00:00 committed by GitHub
parent 0259bd184c
commit b07f66f354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ namespace NomaiVR
if (nextState == buttonState) return;
if (previousState != null && previousState != buttonState) return;
collider.enabled = nextState != ButtonState.Disabled;
if(collider != null) collider.enabled = nextState != ButtonState.Disabled;
switch (nextState)
{
case ButtonState.Disabled:

View File

@ -24,6 +24,7 @@ namespace NomaiVR.ReusableBehaviours
{
interactRadius = localSphereCollider.radius;
interactOffset = localSphereCollider.center;
Destroy(localSphereCollider);
}
ResetInputs();

View File

@ -8,7 +8,7 @@
"title": "Before playing NomaiVR, some information:",
"body": "- Click the NomaiVR readme button in the Mod Manager for information about troubleshooting, requirements, performance, how to uninstall, etc.\n\n- Some VR controllers will have missing icons. Message us if you want to help us add icons for these devices.\n\n- If you have the game on Steam:\n--- Right-click Outer Wilds on your Steam library\n--- Select 'Properties...'\n--- Disable 'Use Desktop Game Theatre.'"
},
"version": "2.4.1",
"version": "2.4.2",
"owmlVersion": "2.1.0",
"requireVR": true
}