Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
tikitofu's avatar
tikitofu
Explorer
6 years ago

Starting an OVRGrabbable Object as Kinematic

Is it possible to instantiate a gameObject as kinematic, but then after being grabbed have it not be kinematic?  The desired effect being the object is frozen in the air to start, can be grabbed, but after release drops to ground.

So before being grabbed:
        obj.GetComponent<Rigidbody>().isKinematic = true;
        obj.GetComponent<Rigidbody>().useGravity = false;

And after being release from grab:
        obj.GetComponent<Rigidbody>().isKinematic = false;
        obj.GetComponent<Rigidbody>().useGravity = true;

Thanks!

1 Reply

Replies have been turned off for this discussion
  • No answer for this bro, I searched, I tried injecting and I tried same method.. You have to enable RB at first so when u grab and release it will work...