Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Comments & Feedback
  3. Custom Restrain Areas

Custom Restrain Areas

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

    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
    0
    • KamdroidK Offline
      KamdroidK Offline
      Kamdroid
      wrote on last edited by
      #2

      @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
      0
      • DavioD Offline
        DavioD Offline
        Davio
        wrote on last edited by Davio
        #3

        @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
        0
        • DavioD 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 Offline
          Aidan_FireA Offline
          Aidan_Fire
          wrote on last edited by
          #4

          @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
          0
          • Aidan_FireA Aidan_Fire

            @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 Offline
            KamdroidK Offline
            Kamdroid
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • Aidan_FireA Offline
              Aidan_FireA Offline
              Aidan_Fire
              wrote on last edited by
              #6

              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
              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Search