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

Bug VR objects throught the colliders

Discussion in 'VR' started by Christian_Perri, Nov 2, 2022.

  1. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    Hello Everybody,
    i am creating a VR game using di XR Interaction toolkit,
    i am having a problem,when i have grab the objects and i have them on my hands they can pass throught other objects also if they have a collider,it is like they no more responde to the physic.
    Do you know a solution for this problem?
    In Eleven table tennis for the example the racket can't pass throught the table.
     
  2. Ashwini17

    Ashwini17

    Joined:
    Jun 3, 2022
    Posts:
    3
    Hi Everyone!
    I am trying to create a VR game in which I am trying to grab the objects and release on another object such that they collide with each other. Upon each collision counter has to be increased by 1.I tried using onCollisionEnter() method for increasing the counter value.But it seems like that part of code is not executing at all.Could you please help me out?
     
  3. Christian_Perri

    Christian_Perri

    Joined:
    Aug 7, 2022
    Posts:
    31
    do the 2 objects have the rigidbody?,than they have to have a collider and the voice "is trigger" needs to be false
     
  4. Ashwini17

    Ashwini17

    Joined:
    Jun 3, 2022
    Posts:
    3
    Thank you @Christian_Perri for the response.I could somehow solved my problem .Its working now.