Forum Discussion
Slay291
7 years agoHonored Guest
Physics less object when holding in hands
Hello,
I'm using Unity SDK and I want items to be physic less (to not interact with other rigid bodies, go through them...) because sometimes they cause some weird physics glitches. I tried disabling rigid body script while object is being held but that breaks whole Grabbable/Grabber script.
Is there any know workaround?
Thanks in advance,
Andrija
I'm using Unity SDK and I want items to be physic less (to not interact with other rigid bodies, go through them...) because sometimes they cause some weird physics glitches. I tried disabling rigid body script while object is being held but that breaks whole Grabbable/Grabber script.
Is there any know workaround?
Thanks in advance,
Andrija
2 Replies
Replies have been turned off for this discussion
- AnonymousYou might try spawning a "copy" of the object in the hand, and destroying the original one that is picked up. Since the grab depends on the collider, disabling that would be difficult. Instead, you might be able to trigger a "collider-less" version of the object to be grabbed - and when you place it again, it would re-create the original object in the new location (with it's collider back). Just a thought I haven't worked a whole lot with grabbing myself, yet.
- Perhaps setting "isKinematic" to true and disabling the collision objects from your script would work?
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
- 2 years ago
- 4 years ago