Forum Discussion
Object intersect not working in Drag and Drop
Hi StevenBenassi
We dropped Drag 1 object into the Drop 2 area. When we drop the Drag 2 object into the Drop 2 area as well, the Drag 1 object returns to its initial position, and the object intersect trigger on Drag 1's trigger is activated. As a result, the state of the Term 1 object, which is affected by this trigger from Drag 1, changes.
However, in the video you shared, you drop three objects into the same drop area. In this case, the object intersect trigger, which should change the state of the line object for each dragged object, does not work.
Here’s what I want: Let's say we drag an object into a drop area. When another object is dragged into the same drop area, the first dragged object should return to its initial position. However, when the first object returns to its initial position, it should also change the state of the line object.
This behavior is present in the sample project I shared. However, in the my project , even though the triggers are identical to those in the shared project, I am unable to trigger another object's state when the first object returns to its initial position.
Hello Zaoisicin,
Thanks for the additional information. I looked at your design and found that using the "When user drops object" event is a more suitable trigger for what you're trying to achieve. Here's a screenshot of a sample trigger I added:
And here's a recording of the interaction with this trigger added. Alternatively, you can stick with your original design, but you'll need to double-check your triggers to make sure you are targeting the correct objects. In this example, I was able to get the intersect interaction to work by modifying your triggers like this:
Here's a recording of the intersect event. Hope this helps!
Related Content
- 8 months ago