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

    Custom Restrain Areas

    Scheduled Pinned Locked Moved Comments & Feedback
    6 Posts 3 Posters 1.7k Views 1 Watching
    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.
    • DavioD Offline
      Davio
      last edited by

      Hello,
      It would be super helpful to have a custom restrain area.
      I am trying to make an app, where you can drag an object around.

      However, when you make an object not passable, you can still drag a different non passable object over other non passable objects

      The restrain area is awesome, because you can make a square that you can drag an object in, and if your finger goes out of the area, the object will still follow your finger but stay inside the restrain area.

      A custom restrain area would be perfect

      1 Reply Last reply Reply Quote 0
      • KamdroidK Offline
        Kamdroid
        last edited by

        @Davio This feature has already existed for awhile.

        You can easily find it and turn it on in the properties of a Drag & Drop behaviour and visually select the constraint area by pressing "Draggable Area".

        0_1537436521348_D2AB9467-D314-4477-BB6F-93D387ED768E.jpeg

        0_1537436593557_9842E69E-6D98-45A6-911A-0DAF9FB99620.png

        1 Reply Last reply Reply Quote 0
        • DavioD Offline
          Davio
          last edited by Davio

          @Kamdroid Yeah, I've seen that before. I was wondering if you could make constrained areas with larger polygons instead of rectangles

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

            @davio For having a custom constrain shape, you could try building invisible (or not invisible) wall objects that block your draggable object (dragged object must be physics). I just wonder whether you might run into the issue of squishy physics allowing the object to push through if you drag too far outside the area.

            KamdroidK 1 Reply Last reply Reply Quote 0
            • KamdroidK Offline
              Kamdroid @Aidan_Fire
              last edited by

              That might work, but he also wants a solution that will work if he has his object passable.

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

                Would be a little tricky, but you could make it non-passable and then use the Ignore Collisions behaviour on every object that it passes through.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post