logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Touch Behaviours output weird values

    Scheduled Pinned Locked Moved
    Bug Reports
    2
    4
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aidan_FireA
      Aidan_Fire
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • RobinsonXR
        RobinsonX
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • Aidan_FireA
          Aidan_Fire
          last edited by Aidan_Fire

          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?

          1 Reply Last reply Reply Quote 0
          • RobinsonXR
            RobinsonX
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post