Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Strange collider behaviour

Discussion in 'XR Interaction Toolkit and Input' started by Gatinha123, Apr 13, 2021.

  1. Gatinha123

    Gatinha123

    Joined:
    Apr 30, 2018
    Posts:
    13
    I'm trying to make a physical push button on a pedestal, the pedestal is hollow, the button is kept in place with the help of a spring joint, and a trigger box collider roughly midway on the pedestal detects whether the button was pushed down (pressed).
    The complicated stuff works, the weird thing is that sometimes the hand collider just doesn't interact at all with the button (My hand phases through). I've not been able to pinpoint specific situations when this will happen, it seems to be random, and regardless of the speed of my hand.
    I have the hand and the button on specific layers (Hand and Interactable, respectively), and the hand only interacts with the Interactable layer, on the physics settings.
    My question is why and how can i solve this, any help is welcome.
    Note: I am using the XR interaction toolkit, though i doubt it is important for this specific problem. Images below include my hand, button and physics set up.


    Capture3.PNG Capture2.PNG Capture.PNG
     

    Attached Files: