Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto grab on Interactor and Interactable both throw an error #1975

Closed
thestonefox opened this Issue Apr 4, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@thestonefox
Copy link
Member

thestonefox commented Apr 4, 2019

Environment

  • Source of VRTK: Github master
  • Version of VRTK: v4 Github master
  • Version of the Unity software: 2018.3.11f1
  • Hardware used: Oculus rift
  • SDK used: UnityXR

Steps to reproduce

with an interactor and an interactable in the scene attempt to call either:

Interactor.Grab(Interactable)

or

Interactable.Grab(Interactor)

Expected behavior

The Interactable should automatically be grabbed by the interactor.

Current behavior

Throws an ArgumentOutOfRangeException

Stacktrace:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
VRTK.Prefabs.Interactions.Interactors.GrabInteractorConfigurator.CreateActiveCollisionsEventData (UnityEngine.GameObject forwardSource, UnityEngine.Collision collision, UnityEngine.Collider collider) (at Assets/VRTK/Prefabs/Interactions/Interactors/SharedResources/Scripts/GrabInteractorConfigurator.cs:249)
VRTK.Prefabs.Interactions.Interactors.GrabInteractorConfigurator.Grab (VRTK.Prefabs.Interactions.Interactables.InteractableFacade interactable, UnityEngine.Collision collision, UnityEngine.Collider collider) (at Assets/VRTK/Prefabs/Interactions/Interactors/SharedResources/Scripts/GrabInteractorConfigurator.cs:175)
VRTK.Prefabs.Interactions.Interactors.InteractorFacade.Grab (VRTK.Prefabs.Interactions.Interactables.InteractableFacade interactable, UnityEngine.Collision collision, UnityEngine.Collider collider) (at Assets/VRTK/Prefabs/Interactions/Interactors/SharedResources/Scripts/InteractorFacade.cs:128)
VRTK.Prefabs.Interactions.Interactors.InteractorFacade.Grab (VRTK.Prefabs.Interactions.Interactables.InteractableFacade interactable) (at Assets/VRTK/Prefabs/Interactions/Interactors/SharedResources/Scripts/InteractorFacade.cs:117)
VRTK.Prefabs.Interactions.Interactables.Grab.GrabInteractableConfigurator.Grab (VRTK.Prefabs.Interactions.Interactors.InteractorFacade interactor) (at Assets/VRTK/Prefabs/Interactions/Interactables/SharedResources/Scripts/Grab/GrabInteractableConfigurator.cs:75)
VRTK.Prefabs.Interactions.Interactables.InteractableFacade.Grab (VRTK.Prefabs.Interactions.Interactors.InteractorFacade interactor) (at Assets/VRTK/Prefabs/Interactions/Interactables/SharedResources/Scripts/InteractableFacade.cs:157)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:207)
UnityEngine.Events.CachedInvokableCall`1[T].Invoke (System.Object[] args) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:345)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:70)
Zinnia.Action.Action`3[TSelf,TValue,TEvent].EmitActivationState () (at Assets/VRTK/Dependencies/Zinnia.Unity/Runtime/Action/Action.cs:164)
Zinnia.Action.Action`3[TSelf,TValue,TEvent].ProcessValue (TValue value) (at Assets/VRTK/Dependencies/Zinnia.Unity/Runtime/Action/Action.cs:277)
Zinnia.Action.Action`3[TSelf,TValue,TEvent].Receive (TValue value) (at Assets/VRTK/Dependencies/Zinnia.Unity/Runtime/Action/Action.cs:186)
VRTK.Prefabs.CameraRig.UnityXRCameraRig.Input.UnityButtonAction.Update () (at Assets/VRTK/Prefabs/CameraRig/UnityXRCameraRig/SharedResources/Scripts/Input/UnityButtonAction.cs:22)

@thestonefox thestonefox added the bug label Apr 4, 2019

@thestonefox

This comment has been minimized.

Copy link
Member Author

thestonefox commented Apr 5, 2019

Will be fixed with #1976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.