cancel
Showing results for 
Search instead for 
Did you mean: 

Starting an OVRGrabbable Object as Kinematic

tikitofu
Explorer
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!
0 REPLIES 0