VRTK icon indicating copy to clipboard operation
VRTK copied to clipboard

WindowsMR ControllerColliders use fallback

Open beccannlittle opened this issue 8 years ago • 1 comments

Environment

  • Source of VRTK: Github
  • Version of VRTK:: 3.3.0 (d88c9ea)
  • Version of Unity3D: 2018.1.0f2
  • Hardware used: Samsung Odyssey
  • SDK used: WindowsMR

Steps to reproduce

  • Follow instructions for enabling native WMR SDK (NOT SteamVR)
  • Follow instructions for using VRTK-Windows-MR-Extension
  • Enter Play mode and inspect [VRTK][AUTOGEN][Controller][CollidersContainer] which can be found under the SDK Setups as a child of the script alias

Also, see SDK_WindowsMRController.cs on line 208:

public override string GetControllerDefaultColliderPath(ControllerHand hand)
{
    //TODO: Implement
    return "ControllerColliders/Fallback";
}

Expected behavior

We should see colliders relevant to the WMR controllers.

Current behavior

We see the fallback collider, which is a simple sphere.

Workaround

I copied SteamVRWindowsMRController_Left and SteamVRWindowsMRController_Right from VRTK > Source > SDK > SteamVR > Resources > ControllerColliders and pasted them into a new ControllerColliders folder under WindowsMR > Resources. I modified them a little to make them fit better to the model, but its not perfect.

I also modified GetControllerDefaultColliderPath in SDK_WindowsMRController.cs:

public override string GetControllerDefaultColliderPath(ControllerHand hand)
{
    return (hand == ControllerHand.Left ? "ControllerColliders/SteamVRWindowsMRController_Left" : "ControllerColliders/SteamVRWindowsMRController_Right");
}

beccannlittle avatar Aug 21 '18 23:08 beccannlittle

Closing this as it's related to an older version of VRTK (v3.3) the master branch is now on VRTK v4. Feel free to request to reopen if the issue is still present.

thestonefox avatar Mar 30 '19 11:03 thestonefox