Forum Discussion
tikitofu
6 years agoExplorer
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;obj.GetComponent<Rigidbody>().isKinematic = true;
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
- suryavijayyHonored Guest
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...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device