Forum Discussion

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

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

2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    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.
  • Perhaps setting "isKinematic" to true and disabling the collision objects from your script would work?