I thought I was the first to comment, but Faytree's comment magically appeared before mine after pressing "Add reply". I would have got the answer, but my shoe was untied and the sun was in my eyes. Maybe next time.
Maybe the scene can act as a public service announcement to remind old guys to have their prostate checked. Either that or maybe for a hemorrhoid cream advertisement. If anyone's offended by this comment, then let Xray know and he will delete it, or let me know and I will.
Thanks for the explanation. Now I can see how much effort went into making the gears. I don't understand how you can subtract the blue gear from the yellow circle without cutting the green bar, unless you pull away the green bar before subtracting. See Internal Circle Gear for a somewhat similar scene.
Hooray! I learned something new today. Here's a more detailed explanation for people like me who might not of understood it at first.
To subtract the blue polygon from the yellow circle without subtracting from the green bar, do the following:
1. Select the blue polygon.
2. Right click the blue polygon.
3. Pull the context menu away (undock it) from the parent menu. You will need this menu later.
4. Select the yellow circle.
5. Click the blue polygon's "subtract" menu item each time you wish to subtract the blue polygon only from the yellow circle.
I'm not going to do any more work on this since the troposphere is so small compared to the size of the earth. You could make a scene that contains all troposphere, in which case:
in postStep code of object of interest:
h := pos(1);
h > 20.0E3 ? {airFrictionMult = 0.0}:{};
h < 0.0 ? {airFrictionMult = 1.0}:{};
(h > 0.0) && (h < 20.0E3) ? {airFrictionMult = -4.333E-14*h^3+3.311E-9*h^2-0.9498E-4*h+0.999}:{};
P.S. I changed my mind, I will respond to this scene.
The unwritten (until now) point of this scene is that the canon ball hits the melon at any speed as long as the laser initially points at the watermelon. The reason this works is that the canon ball is falling at the same rate as the watermelon. I will remove the canon angle adjustment and change the scene slightly in order to make that point.
Q: When 2 particles have oncollide script "e.other.color = e.this.color", how does Algodoo determine which one is "Dominant"?
A: The object that was created first has dominance. I've tested this extensively (1 test), and this seems to be the case.