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

Enable RigidBody while HandDraggable

Discussion in 'VR' started by nicolaspozzi, Apr 2, 2019.

  1. nicolaspozzi

    nicolaspozzi

    Joined:
    Feb 13, 2019
    Posts:
    3
    Hi guys ! :) I have a question about handDraggable (script int the MRTK). Is it possible to keep RigidBody on the object while handDragging ?
    I have to unlock a drawer with a key, so i use the "OnCollisionEnter" on my drawer, but it works only if i throw my key !
    Thanks in advance for your help :)
     
  2. nicolaspozzi

    nicolaspozzi

    Joined:
    Feb 13, 2019
    Posts:
    3
    by reading again the class handDraggable, I noticed that it does not disable RigidBody but that it activates the Kinematic option, which is more or less the same.
    I will try something other than OnCollisionEnter
     
  3. nicolaspozzi

    nicolaspozzi

    Joined:
    Feb 13, 2019
    Posts:
    3