Forum Discussion
Suzit
8 years agoHonored Guest
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
- weasel47Heroic ExplorerIf 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.
- SuzitHonored GuestIt ain't working
- SuzitHonored Guest@imperativity...yup, i'm using ovrGrabber
- SuzitHonored Guest
imperativity said:
@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. - SuzitHonored 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 - seansteezyHonored GuestCan 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?
- seansteezyHonored Guest
seansteezy said:
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!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 1 year ago
- 3 years ago