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

    Parenting/Nesting

    Scheduled Pinned Locked Moved
    Help and Support
    4
    12
    306
    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.
    • D
      Deeeds
      last edited by

      Is there any parenting or nesting type connectivity possible between objects in hyperPad?

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

        Not yet. It’s on our roadmap.
        You can access the roadmap from the learn tab.

        D 1 Reply Last reply Reply Quote 0
        • D
          Deeeds @Murtaza
          last edited by Deeeds

          @Murtaza

          If you mean this:

          0_1509211677193_Screen Shot 2017-10-29 at 1.27.11 AM.png

          It seems a long ways off.

          I can suggest a far easier and faster solution, a behaviour, in the Object category:

          "Is Child of...."

          Left side of this behaviour would default to the currently selected object, right side the user must pick an object to be the parent. DONE!

          ADDITIONALLY, if you want fuller functionality:

          "Attach as Child of..."

          And

          "Release from Parent"

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

            We considered making a hierarchy system through behaviours only. But in the end decided against it. We figured the feature would be too hidden and difficult to use. So us investing the time to develop would not result in mass adoption.

            Where as a visual approach could be use more widely.

            Since our resources are limited we need to focus on doing things that will affect the majority of the community, and also avoid doing things over and over. If the behaviour routedisnt worknout, it would end up delaying the visual system even further.

            That being said, maybe @Hamed can chime in and see if it’s an “easy” addition.

            1 Reply Last reply Reply Quote 0
            • D
              Deeeds
              last edited by

              I beg to disagree:

              The underlying code (in your engine/system) doesn't change, you simply have two ways of initiating and releasing parenting.

              The first is much easier to implement, you simply add two behaviours, one to attach an object to a parent, the other to release it. For those that need it, it will be welcomed and understood in that manner.

              For everyone else, you can now take your time figuring out the visual interface and interactions of a layers palette for doing the exact same thing...

              1 Reply Last reply Reply Quote 0
              • HamedH
                Hamed Admin
                last edited by

                Our physics engine makes this kind of thing tricky. So doing it through behaviours isn't as easy as it seems. We really want this feature soon.

                D 1 Reply Last reply Reply Quote 0
                • D
                  Deeeds @Hamed
                  last edited by

                  @Hamed I understand that!

                  However, most of the time these sorts of things are done it's a graphical hierarchy that's being created, wherein the base (parent) might have physics, but the children are only visual adornments, without physics.

                  If they are physical objects, then they'll be welded or otherwise joined with physical relationships (joints).

                  Anyone trying to use parenting AND joints is going to get into a huge mess, so this shouldn't be permitted.

                  Does that make it easier?

                  1 Reply Last reply Reply Quote 0
                  • HamedH
                    Hamed Admin
                    last edited by

                    It makes it much easier, however, I need to look into this a little bit further because I feel like there are other implications of doing it this way.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      Deeeds @Hamed
                      last edited by

                      @Hamed No worries. Hit me on email and I'll lay out a look at how other engines deal with the problems of virtual parenting versus joints and physics.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Deeeds @Deeeds
                        last edited by

                        @Deeeds Here's an initial attempt to describe the relationships between virtual and physical:

                        The best way to describe this problem uses the the lexicon “Scene Graph” and “Physical Structures”

                        By Scene Graph I mean entities and components in a hierarchy of relationships to each other (parenting) and in layers (which can also be parented to one another) as groups.

                        It should be (ideally) possible to move an entire layer’s contents by simply moving the layer. A layer is, ultimately, the parent object for all of its content. Moving a layer that’s a parent of another layer also moves that child layer’s transform accordingly, and all its content.

                        In this kind of world, there is nothing (so far) better than a layers palette similar to what we use in Photoshop or After Effects, for simply exposing this and making it all visually editable for end users.

                        Physics structures are made like bodies, their relationships defined through joints (ideally) performed in a live visual editing space in which it’s possible to make physical connections and experiment with the movements and effects that result from these connections. \

                        Whilst physics objects exist in the Scene Graph, their layers are defined by their top most object, their parent object. So a ball, for example, is an individual layer.

                        A Mickey Mouse character might have its torso as the parent, and therefore being its “Layer”, and within that layer is its head, legs, arms and neck.

                        The Mickey Mouse Torso Layer can be nested in a Scene Graph layer, since any movement of this parent SceneGraph layer will result in an equal movement of all child elements in terms of their relative transforms.

                        But that’s about the extent of relationships between the Scene Graph and Physical Structures.

                        Anyone wanting to parent a group of Scene Graph objects to a physics object must give up on the idea of the Scene Graph child and its children having any physical attributes, as this will create chaos. Or rigid joints prone to breaking and creating (very likely) unwanted physical activity.

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

                          Oh is this where multiple objects join together to basically make one? If so, this would be awesome if it happened, basically just a physics attach without the squishyness. The only way I get something similar to this is constantly having an object move to its parent on a 0 second timer and on an anchor, but obviously then the child objects don’t have working physics.

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Deeeds @Aidan_Fire
                            last edited by

                            @Aidan-Oxley Yes, that's the result.

                            What's actually happening is the passing through of the transform of the parent (world space) to the children.

                            So position, rotation and scale/skew of the parent always influence (or get passed through) the children.

                            In most engines the transparency is also passed through, too.

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