We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Drag appended object impossible ?

Home Forums Puzzles Drag appended object impossible ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #86837
    NaxosCG
    Customer

    Hello there !

    I’m still on my new big project with light letters, and in my very first test i could move each letter with the drag puzzle (i’ve even asked a question about limiting the drag : https://www.soft8soft.com/topic/collision-object-with-dragmove/)

    Now the project has been fully procuced, re-thinked and optimized. One of the optimizations i set is to prevent loading of 40+ letters already inside the app, using the clever “Append scene” puzzle.
    But it seams that appended objects can’t me drag / moved…

    I was using a movable list to be able to drag any object from this list, as it did not work, i tried to use “all object” puzzle to check : all pre-existing objects are drag/movables (even the floor and walls), but none of the appended objects are…

    So it seams that when we merge objects from external gltf using “append scene” puzzle, the app can pick them (tested with hover for cursor change, and print name console if clicked), but not drag/move them.

    Limitation ? bug ?

    Thanks for help.

    "1+1=3... for large values of 1"

    #86839

    Hi,
    when dragged puzzle works a bit differently compared to when clicked. All objects/groups (but not string names) should be resolved after you append the scene. So in your case the most straightforward way to use this puzzle would be assigning puzzles for all possible objects that can be dragged (if the amount of code is large, use procedures to reduce it).

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #86842

    In the meantime we’ll consider implementing the “dragged object” puzzle that can reduce the amount of work needed when dealing with appended scenes.

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

    #86843
    NaxosCG
    Customer

    Thanks for answer, Alexander, but i think my problem is not this.
    I use a “when clicked” to set a variable “grabbedObj” to “pickedObject”,
    Then i use when dragged on the variable grabbedObj…

    It used to work before, on my first tests, but now that the objects i need to drag/move are not inside the main scene, they are added later using “append scene”.
    And then it does not move.

    BTW, a “dragged object” puzzle would certainly help a lot!

    "1+1=3... for large values of 1"

    #86844
    NaxosCG
    Customer

    Here is a test where i set back the dragMove puzzle i was using for early tests, just put “all objects” in the list :
    https://v3d.net/1fq6

    PLEASE don’t share for now, it is still in dev. I’ll share the final customer’s link when finished.

    As you can see, all can be dragged, except lettres (you have to open the 3 bars menu, then click some letters) The letters are merged using “append scene”

    See attached screenshot for puzzle

    "1+1=3... for large values of 1"

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.