Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Prevent a hand to go through other objects

Discussion in 'AR/VR (XR) Discussion' started by masta-yoda, Aug 17, 2020.

  1. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    I'm using Unity3d with my Oculus VR game, specifically OVRPlayerController. I have a sword in my hand and want to prevent it from going through other objects, I want it to hit another object and stay there, preventing the sword and the hand from moving further, as if I hit a rock or other metal, something super rigid. I tried multiple combinations of rigid bodies, colliders, and kinematics and nothing gave we expected result, most likely I configured it incorrectly.

    How can I achieve that?

    OculusScreenshot1597641918.jpeg OculusScreenshot1597641929.jpeg
     
  2. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
  3. Viperow

    Viperow

    Joined:
    Jan 20, 2020
    Posts:
    1
    Try this
    upload_2020-8-17_13-52-34.png
     

    Attached Files:

    Verne33 likes this.