To uncouple two objects connected by a hinge, just set the hinge's timeToLive = 0.
If your thinking "I cannot respawn whole truck and trailer every time they couple", then my question is: Why not? Maybe you could do it, but choose not to. You can spawn a whole scene if you want to. See Eight In One.
What's wrong with the solution you show in the scene above?
Works good. You just need to glue those numbers on. Wow, no moving parts. I never realized until now that you can change the color of just part of an object. Nice use of a 105 byte texture and textureMatrix. Small texture and small textureMatrix code. I like your elegant design and coding.
Thanks for checking it out. Regarding "female to male voice", that is most likely system dependent. I'm running Win10 and I suspect it came with 2 voices. You can download more voices. Google "SAPI voices" to see how.
I agree with your "monkeying around" statement. Here are some possible solutions:
1. Build a library of sounds that apply to most scenes.
2. Create an Algodoo function that writes the sound urls to a text file. The vbScript or Python file can then download the files invisibly from the internet before processing any sound commands.
3. Only make scenes that use the original sounds.
4. Only use the text to speech component of AlgoSound. Make up words that sound like the sounds you desire.
5. Use two utilities, wav2hex and hex2wav. Convert the wav to hex, save it as a variable in Algodoo, Algodoo prints the hex to a file, then have AlgoSound convert the hex file to a wav. file.
2.Yes, but I don't know if they want to fix it.
3. Yes
5./6. One ends in a "z" and the other ends in an "n". One can be modified with a text editor and the other can't.
8. I thought it was good, only a small error in math.
10. Thanks.
Looks good and works the way you would expect. The math may not be correct (see Heat Transfer Lumped Analysis), but that might not matter. In short, the braking energy would go directly into the rotor while at the same time the rotor would be exponentially cooling at a rate depending on the temperature difference between the rotor and the surrounding air.
Thanks. I appreciate the feedback. I developed the code a few months back and it appears that only a few people have tried it out. Search for the tag "AlgoSound" to find other scenes that use AlgoSound.
Q: Why?
A: Since text to speech does not require an external sound effect file, you don't need to supply the .wav file or url to the sound effect file. So the text for the torpedo launch could be "oooooooooooooooooooo", the text for the explosion could be "kibluem", and the text for the sonar ping could be "pean".
Regarding "ONLY 2 lines of code", I'm proposing 3 lines. I know it's 50% more code, but that's the price you pay for more accurate results (linear heating with exponential cooling).
I recently updated Braking Bad. I liked your tight coding so much that I used your code with the modifications mentioned above.
Yes. I downloaded them shortly after you had posted them. They sound great and are much better than the ones I had suggested. I then changed the links in my original comment to your sounds with the intention of saving users the step of cutting and pasting the urls.
Q: Can you make that game where dots are sliding down and you need to press button at right time?
A: I can, but I have no plans to do so.
Q: how are channels working? Is it like layers in algodoo?
A: Yes, from the point of view that channel sounds can overlap.
All channels are on all the time. You can't turn separate channels on and off.
Hinges and FixJoints can't connect geometries without first recreating the geometries and then making sure that geom0 and geom1 refer the new geometries. It sucks, but that's the way it is.
Thanks for bringing up the problem and solution. You can use AlgoSound to solve the puzzle even with the display turned off. I would suggest using headphones.
The next version of AlgoSound (not posted yet) has left and right volumes for the tones and I have made a scene similar to this that uses the left/right speaker balance to determine the circle x position. The next AlgoSound version will also automatically download sounds from the scene creators suggested web location which will be in an Algodoo generated text file. It's fast, and the user would never notice that he was originally missing the file.
Thanks for the comment. I can put a filter on it, so it can only download .wav, .mp3, or .mid files. Would that be OK? Do you have any other ideas? Next time state the problem and solution like Xray did above. Why can't you be more like your brother?