I am trying to make a toggle out of a jit.phys.object, but I get stuck on a simple issue.
I would like the toggle to behave this way :
- the "click" is taken into account on mouseup
- the "click" is cancelled if mouseup is happening outside the object.
See patcher below for a (failing) demo.
It seems like contact information is near at hand (since it given on mouse down), but is missing for my aim...