Forum Discussion
cibernaio
3 years agoProtege
Keep an object grabbed in a hand
Hi, I'm a beginner, I've seen the examples of grab, distance grab of Oculus, I would like: 1- after taking an object with the grab, have it remain in my hand after I release the grip button, such ...
AWFlat
3 years agoHonored Guest
I'm lost. Do you want the sphere to move and not the cube?
- cibernaio3 years agoProtege
I summarize it like this:
I would like to have a racket that has a rigid body and therefore can hit a ball.
But I don't want grab it and hold it with the grip button pressed all the time.
Hence your idea of ​​attaching the object, in this case a racket, (or a cube) directly to the parent of controller, however I can't do it as the object flies away, it doesn't stay attached.
- AWFlat3 years agoHonored Guest
Ok, try this.
If you put rigidbody with is kinematic and gravity is set to false on the cube that is child of the hand object, try to freeze position/rotation in the constraints section of the rigidbody. If you put the rigidbody on the sphere as kinematic and not using gravity you should now be able to move the sphere by "pushing" the cube against it. If you want the sphere to fly away I guess you would want to activate gravity when collided and tweak the mass and physics materials.
I think you might have better luck in finding answers regarding this on the unity forums as this is a heavily Unity based question rather than Oculus.Hope that helps
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
- 1 year ago
- 4 years ago
- 7 years agoAnonymous