Skip to main content
New Participant
April 9, 2019

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
This topic has been closed for replies.

2 replies

April 9, 2019
You 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.
JeffNik
Honored Contributor
April 9, 2019
Perhaps setting "isKinematic" to true and disabling the collision objects from your script would work?