Closed MyAlpaca5 closed 5 years ago
The issue here is that when you touch something it passes through the Interactor
object but when you grab something it actually passes through the
Interactor/InteractionLogic/Interaction.Grabbing/AttachmentOrigin
object
So if you were to set that object as your disallowed grab interactor then it would ignore the grab.
This is a bit confusing so I'll have a think if it's easy enough to make it so it also uses the interactor too.
Never even notice there is a AttachmentOrigin
object before, DisallowedGrabInteractors
is working as it is supposed to be now.
@thestonefox Just wandering if there is anyway to check which Interator
is grabbing one specific Interactable
. I know you could find which Interactor
is touching one specific Interactable
in Interactable.TouchLogic/Interactable.TouchReceiver/EventLogic/TouchingActions/TouchCollection
. However, have not found similar Collection object in Interactable.GrabLogic
Yeah it's not very clear or intuitive that you need to use AttachmentOrigin, I think that can be improved somehow.
As for knowing touching/grabbing interactors, just use the collections on the interactable facade:
Environment
Steps to reproduce
Expected behavior
When Right Controller touches the Hammer, outline should not appear. When Right Controller grabs the Hammer, nothing should happen.
Current behavior
When Right Controller touches the Hammer, outline does not appear. When Right Controller grabs the Hammer, I pick up the Hammer.
PS: