Home › Forums › General Questions › A simple puzzle set up help needed
- This topic has 8 replies, 3 voices, and was last updated 1 month ago by
visualizer.
-
AuthorPosts
-
2025-07-30 at 7:37 am #83399
visualizer
CustomerHi
Guys I am trying to set up the puzzles to affect the “Red cube 1” when “Green cube 2” comes in certain proximity.
I tried for both parenting & animation trigger of red cube why it snot happening?
Am I missing anything?-
This topic was modified 1 month, 2 weeks ago by
visualizer.
Attachments:
2025-07-30 at 7:57 am #83402visualizer
CustomerThis is small ref video of what is happening
Attachments:
2025-07-30 at 8:11 am #83404Alexander Kovelenov
StaffHi,
The first snippet should work (though the parenting is redundant in such case). Check that these cubes are actually “Cube1” and “Cube2” (use print to console to debug).
The second snippet won’t work since it’s being executed only once upon application start. But, since the distance between the objects is more than 0.5 it won’t play the animation.
-
This reply was modified 1 month, 2 weeks ago by
Alexander Kovelenov.
2025-07-30 at 9:57 am #83409kdv
ParticipantPuzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2025-07-30 at 5:57 pm #83414visualizer
CustomerThe first snippet should work (though the parenting is redundant in such case). Check that these cubes are actually “Cube1” and “Cube2” (use print to console to debug).
Actually it should work in first case… but still it is not working.
The snap didn’t work that’s why I added the parenting. Else its not needed. I agree
what’s possible? shall I provide blend file?
-
This reply was modified 1 month, 2 weeks ago by
visualizer.
2025-07-30 at 6:12 pm #83419visualizer
CustomerKDV
I see that it is working with your setup prepared but is that needed so lengthy to make it happen? Just curious.
especially “DIstance” variable inserted & why we need “parent” in drag move puzzle?2025-08-01 at 8:56 am #83444kdv
ParticipantActually it should work in first case… but still it is not working.
Actually, it won’t work as expected because the condition will be met only if your cubes are initially close to each other.
The second snippet won’t work since it’s being executed only once upon application start
why we need “parent” in drag move puzzle?
I just reproduced your puzzles. I don’t know why you did use parenting
“DIstance” variable inserted
it’s just a small optimization
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2025-08-04 at 6:21 pm #83498visualizer
CustomerOk
Quite learning for me.
Thx for the explanation KDV /|\2025-08-13 at 11:42 am #84161visualizer
CustomerI just reproduced your puzzles. I don’t know why you did use parenting
no no that was my mistake or may be checking some possibilities an dcombinations
-
This topic was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.