- This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by
dman3d.
-
AuthorPosts
-
2019-02-24 at 7:03 pm #11763
dman3d
CustomerI 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 millisecondsOn 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
2019-02-25 at 8:51 am #11781
Yuri KovelenovStaff2019-02-25 at 6:32 pm #11795dman3d
CustomerThat 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
2019-02-26 at 9:32 am #11819
Yuri KovelenovStaff2019-02-26 at 3:42 pm #11851dman3d
Customerah, I kept thinking integer is a whole number duh
-
AuthorPosts
- You must be logged in to reply to this topic.
