Scripting for on click only and on release only
I would like to write a script that records data from objects specifically when they are clicked, or when they are released. Currently, the two options available do something else, namely "On Click" actually executes as "On Click And Release If The Object Wasn't Moved" while "On Update" executes whenever the object is updated, for instance at every step when it's being moved. Is there any way or workaround to make this happen?
I would like to do vector exercises where students can automatically build vectors by dragging and combining existing vectors, and for that purpose recording the coordinates of the vectors' initial starting and ending points as well as those of where they are released is crucial.
Thank you for any suggestions!