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.

Cloning

Home Forums Puzzles Cloning

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11763
    dman3d
    Customer

    I am new to Verge3d and know very little of coding. Just very basic logic which is of course the main problem.

    I have done a deal of searching and am unable to sort out my problem and need some help. Before wasting more time on something that may not be possible or only possible with code (which=impossible in the short term) I wanted to ask.
    I keep getting the sequence wrong or simply do not understand enough to make this work. I understand get animation, play animation, change materials and other basic concepts and they work. I am struggling with the cloning and their behavior.

    I have an “object A”
    On click of “object B” an animation of “object B” plays
    On click of “object B” I want to clone the “object A” “X” times
    I want the clones to offset their positions X,Y,Z from the original “object A”
    I want the clones to offset their animation timing start randomly (between value C and D) from “object A” after its autoplay on click, by milliseconds

    On end of the animation of the “object B” I want to either hide the clones of “object A” to use again when “object B” is clicked or destroyed and clones made again when “object B” is clicked

    #11781

    I think everything you described it possible without coding, with just Puzzles. I suggest you start implementing the desired behavior yourself and in case of any troubles, attach your project here so that we can assist you in moving further.

    Chief 3D Verger | LinkedIn | Twitter

    #11795
    dman3d
    Customer

    That is difficult as I am not sure what I need to do to make this work. I have been unable to locate any examples.

    I have attached one of my attempts based on a previous post, clearly incorrect as it is not the desired effect.

    I think I need to somehow iterate the clones so each position is random from each other, currently they just appear in a line and do not animate of course.

    I want it to create 30 clones, all at a random location not more than X distant from the original

    #11819

    Hi,

    I noticed you’re using the random integer puzzle with the range 0.01 to 0.1. This will always produce zero. Try specifying integer numbers for this puzzle, say 1 to 10 and after it generates a random number, divide it by 100.

    Chief 3D Verger | LinkedIn | Twitter

    #11851
    dman3d
    Customer

    ah, I kept thinking integer is a whole number duh

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