Question by
prodintec · Mar 29, 2017 at 08:07 AM ·
gameobjectvrsphereaddcomponent
Problem with throwable script in sphere
Hi, I made a button event that spawns a sphere when I click on it, all correct.
The problem happens when I try to grab the sphere with my htc vive controllers. It seems like it can't left the floor, like a magnet force is using a force to grab it on the floor.
I can take it out of the floor for a second, but it always return to the floor.
I put my code below, I use the openVR asset.
GameObject go = GameObject.CreatePrimitive(PrimitiveType.Sphere);
go.AddComponent<Rigidbody>();
go.AddComponent<VelocityEstimator>();
go.AddComponent<Interactable>();
go.AddComponent<Throwable>();
Comment