Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Suzit's avatar
Suzit
Honored Guest
8 years ago

Collision Between Objects

I'm holding one object in each hand, objects are rigidbody collider. When i try to collide each other, there is no collision between each other(objects), but when i poke with one object to other which is stationary or lying on ground the collision works fine. I want same effect when holding in both hands. Is it possible?

7 Replies

Replies have been turned off for this discussion
  • weasel47's avatar
    weasel47
    Heroic Explorer
    If the rigidbodies are kinematic, they will not respond (in terms of movement) to collisions.  You should look into attaching them to the hands with joints. You'll want invisible kinematic rigidbodies that do move with the hands, and then the objects (which should not be kinematic) can be attached to those with joints. 
  • Suzit's avatar
    Suzit
    Honored Guest
    @imperativity...yup, i'm using ovrGrabber
  • Suzit's avatar
    Suzit
    Honored Guest


    @Suzit

    OVRGrabber makes
    the Rigidbody components kinematic when you pick them up so they only follow
    your hand movement. You could rewrite the script to use a joint instead of
    parenting.



    Thanks mahn!! will look into it.
  • Suzit's avatar
    Suzit
    Honored Guest

    weasel47 said:
    @Suzit

    If the rigidbodies are kinematic, they will not respond (in terms of movement) to collisions.  You should look into attaching them to the hands with joints. You'll want invisible kinematic rigidbodies that do move with the hands, and then the objects (which should not be kinematic) can be attached to those with joints. 

    Thanks mahn1
  • Can anyone elaborate on what/where this takes place in OVRGrabber? I have the same issue, need a grabbed object to tell what it's colliding with (whether those are kinematic or not). I am failing to understand how I would go about attaching the objects to the hands with joints. Would I add a joint component to the grabber and dynamically set the connected body or add it to the grabbed object and set the hand as the connected body?


  • Can anyone elaborate on what/where this takes place in OVRGrabber? I have the same issue, need a grabbed object to tell what it's colliding with (whether those are kinematic or not). I am failing to understand how I would go about attaching the objects to the hands with joints. Would I add a joint component to the grabber and dynamically set the connected body or add it to the grabbed object and set the hand as the connected body?


    I guess my question for @imperativity is where is the object being set to be kinematic, I just can't find it... I am using distanceGrabber, and when I grab something it sets to Kinematic but I don't see it in either OVRGrabber or DistanceGraber during any of those events. What am I missing? Thanks for the help!