VRTK icon indicating copy to clipboard operation
VRTK copied to clipboard

VRTK_InteractTouch returns reference to Interactable_Object that's being held.

Open talothman opened this issue 9 years ago • 5 comments

GetTouchedObject() in VRTK_InteractTouch returns reference to GameObject being held. Does this make sense? What if one say wanted to be able to grab multiple items?

talothman avatar Dec 12 '16 00:12 talothman

GetTouchedObjected() returns a reference to the game object being touched touchedObject

this isn't the item being held.

thestonefox avatar Dec 12 '16 07:12 thestonefox

Also, holding multiple items isn't supported.

thestonefox avatar Dec 12 '16 07:12 thestonefox

Once grabbed, does GetTouchedObject() still return that object that is grabbed? Say for example that grabbed object is attached to ControllerAttachPoint and the controller collider and the grabbed object collider do not overlap, does GetTouchedObject() still return the grabbed object?

I'm working on multi grab. I have something that's really messy and all over the place but it seems to be working.

talothman avatar Dec 12 '16 22:12 talothman

What I have working: https://gfycat.com/UglySpecificGuillemot

talothman avatar Dec 13 '16 01:12 talothman

Looks nice : )

virror avatar Dec 14 '16 20:12 virror