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

    A behavior to change an objects collision boundaries is needed

    Scheduled Pinned Locked Moved
    Comments & Feedback
    4
    8
    588
    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.
    • T-StudiosT
      T-Studios
      last edited by

      Currently it is impossible to change the shape of an objects collision boundaries while a game is running, and I think we need a behavior which can do this. Being unable to do this makes it hard to change an objects shape because we can’t have the collisions reflect the new sprite without using a different object. This could also allow for custom shapes to be dynamically created during gameplay with empty objects, which opens up many potential graphical possibilities.

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

        Definitely will be a useful feature!

        Instead of having to manually place and set empty object collisions for some terrain, we could have custom generated terrain. Would make things easier and would bring cool possibilities.

        1 Reply Last reply Reply Quote 0
        • MurtazaM
          Murtaza Admin
          last edited by

          So how would you guys expect/want this to work as a behaviour?

          Changing collisions is pretty visual. So are you thinking like a change collision behaviour, properties would be object you want to change collisions, and then a button to open the collision editor for that object.
          When behaviour is triggered it changes to your drawn collision?

          Or is there something else you were thinking.

          Aidan_FireA T-StudiosT 2 Replies Last reply Reply Quote 0
          • Aidan_FireA
            Aidan_Fire @Murtaza
            last edited by Aidan_Fire

            @murtaza I think I would say when you open the behaviour, there's some sort of button or thing to interact with, maybe an image of the collisions, when you press it you'd go to collision editor for the object selected?
            Edit: yeah that's exactly what you said actually lol

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

              I was also thinking about more of a mesh thing.

              You could get the collision points of an object and set the collisions using the points, or something similar like that.

              If we want it dynamic, there should be an input field.

              1 Reply Last reply Reply Quote 0
              • T-StudiosT
                T-Studios @Murtaza
                last edited by

                @murtaza I was thinking that, but also with a way to edit it as an array of points for extra precision and dynamic collisions. Sort of like how the rotate to angle behavior has both a wheel and a text input field.

                1 Reply Last reply Reply Quote 0
                • MurtazaM
                  Murtaza Admin
                  last edited by

                  So, I briefly spoke with @Hamed about this. It's doable, but trickier than I thought it would be.
                  Showing the collision editor from within the behaviour editor is currently not possible, just because of the way we manage the editors. We'd have to change how it works behind the scenes. It's possible, but requires a bit of time.

                  Changing the collisions using an array of points is easier, but the issue here is there is currently no point of reference for users. Meaning, it would be a lot of trial and error for you guys since you don't really know where the points are.
                  We'd need to tweak the current collision editor to show the point coordinates, this way you would have some sort of idea where things are if you were to enter the points manually with an array.

                  Soooo, It's doable, but not for a little while as we're in the middle of 3 updates.
                  IF this is something you guys really want and will actually use I can try to prioritize this. But I don't want to spend the time on a feature that won't be used.

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

                    Personally, I don't mind if it's like 3 updates away. If we really want changing collisions for now we can replace the object with the collisions with a duplicate. Having input fields and being able to have dynamic collisions sounds really cool if it's possible.

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