Touch Behaviours output weird values

  • Not sure if this is a bug or intentional, but:

    All touch behaviours output coordinates relative to the bottom left of the object unless world coordinates is on (then it outputs where you pressed in the actual world), not relative to the object's anchor and no screen coordinates. So for example if I have a moving object on the ui and I want to find the screen coordinates of where I pressed on it, I have to get position, add that to touch output, then figure out how large the object is and subtract that from the previous result. It's not that bad, it's just a bit weird that it works this way.

    While touching has this dt output, and the value is usually 0.01 for me. Does while touching really output 100 times per second? Not 60? 0.0166666667?

  • 100 times per second? That would be very performance-wasting considering that hyperPad runs max at 60fps. Or maybe that number somehow gets rounded. Are you on the beta?

  • I'm staying on live cause I want to be able to upload to Hub soon. Yes I'm pretty sure it's being rounded, but it shouldn't be. I don't see the point in this even existing a lot of us already know what the dt value is anyway and it doesn't change, I think?

  • But for the behaviors where they can be triggered anytime, their dt values can vary. 🤷‍♂️

Log in to reply