Jump to content
 
Sign in to follow this  
MagnusEckenfels

How to teleport while having an object

Recommended Posts

Hi,

I am using the teleport script of the VIU to move around in my scene. I can also grab objects with the BasicGrabbable script. But once I have an item grabbed and teleport, I automaticially drop the object. Is there a way in the VIU scripts to combine both, teleporting and grabbing an item?

Id be very thankful for any answers.

Share this post


Link to post
Share on other sites

 Could you try using ViveCameraRig, ViveCollider and ViveCurvePointers prefabs?

For ViveRig prefab uses ControllerManagerSample.cs which will such behavior that you mentioned.

When you try to teleport, it will disable the Grabber gameobject which will release the object you grabbed.

Either you need to modify the ControllerManagerSample.cs to your custom behavior or replace ViveRig prefab with those 3 prefabs I mentioned above to fix your problem.

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...