Here is a link to a scene that I made a few years ago and never posted it. I think it has exactly what you are looking for. There is Thyme script in the spring and in each of the endpoints. Hopefully is is self explanatory but let me know if you have any questions: Electronic Circuit
Correction: The spring endpoints don't have any script in them but the things that they are attached to DO. Those things also each have a local variable: _energy.
I hope that my script isn't too mysterious. When I looked it over just before posting it for you I was thinking that I might need to figure out how it works again if you ask me any questions!
NOTE TO ANYONE WHO SEES A MAJOR FLAW IN THIS "circuit". The battery in the scene shows only one electrical connection attached to the switch. In real life this cannot work because it's not a closed loop. All electrical circuits need a return conductor to the power source. So, I wanted to say this before some eagle-eyed person gloats by pointing that out!.
Oh, sorry. I forgot about an axle (also called a hinge).
In axle (hinge) postStep place this script:
hinge := (readable(owner));
g0 := (entitybygeomid(hinge.geom0));
g1 := (entitybygeomid(hinge.geom1));
where, g0 and g1 are the two geometries that the axle (hinge) is attached to.
You can get data from either geometry like these examples:
scene.my.pos = g0.pos; scene.my.angle = g1.angle
I don't remember which one (g0 or g1) is front geometry and which one is rear geometry. You will need to test it yourself.
Oh, and remember that you can only use g0 and g1 within the local environment that contains that script. In other words, you cannot access g0 data or g1 data from upDate if they were created in postStep.
Hold down the Alt key on your computer keyboard while clicking on the body of the spring. The Alt key works with any object in a scene, even objects that are glued together.
No it doesn't! It only proves that when you zoom way in on the outer edge of a circle, the edge appears to be a flat surface. You cannot prove anything with Algodoo because it's not real life physics. It's only a visual simulation of physical processes.
The IP address returns what's known as a "Local Host". That is what web developers use for testing comms between the website and the local computer. The engineers at Algoryx probably created that user number 1 while testing the functionality of the Algodoo website back in 2008. The account shows a creation date of 1969, which is rather strange!
So, it's cool that you found it, but it's sort of like finding a stone on a beach. That is, it has no value and it's not very interesting!
1. As the timer is counting down the minutes, the digital readout turns to 1 when the pointer gets slightly below 2, and it turns to 0 when the pointer gets slightly below 1. It should show 2 when the pointer points to 2 and 1 when it points to 1, and zero when the pointer points to zero.
2. The washer stays running when the timer reaches zero but it should automatically turn off .
Image animation panels. They are needed for this type of animation so that ALgodoo knows what each image looks like. I could have hid them in a more remote area of the scene, but decided not to.
No, I'm just the Admin (also called a moderator) for Algobox, which is the file sharing portion of the Algodoo website. The creator of the Algodoo app is Emil Emerfeldt, who was an employee of Algoryx which is the company that owns Algodoo. Email left Algoryx a few years ago for unknown reason.
Unfortunately, Algodoo "rope" does not behave like rope in real life which may prevent the effect from working properly. Algodoo rope is more like a segmented chain. You can see how it behaves if you tug on either side of the rope and watch what happens at the peak of the triangle.
By the way, there is a misspelled word in your scene: "stepper" should be "steeper".
Except for those minor issues, it's an interesting scene.
Would you like to make that picture of a penguin look more like a penguin instead of a picture? Here's how: Right click on the penguin picture. The entire picture rectangle will be selected. Then hover your mouse cursor over the word "Appearance". The Appearance panel should show. Now slide your cursor down to the bottom of the panel to "Generate geometry from texture" and left click on it. MAGIC! that picture of a penguin will now look like a penguin instead of like a picture of a penguin! Save the scene to your computer and then upload the modified scene to Algobox or simply EDIT the current scene. You can edit a scene if you use a standard browser such as Chrome or FireFox. You will not be able to edit an existing scene if you are using the Algodoo built-in browser.
1. Don't post a scene that's "not finished". Finish all the details and THEN upload it to Algobox. You only waste people's time when they open and try to view a scene which is not finished. Imagine buying a book that's only half written, or watching a movie what's only partially completed!
2. Some of the objects in your scene are so large, and the scene is zoomed out to its maximum distance. So, it's impossible for a viewer to zoom out any further in an attempt to see the entire scene on the screen. It's better to zoom in a few levels and then start placing objects in your scene. That way a viewer will be able to zoom out in order to see ALL the objects. They cannot do that now.
I watched that Veritasium video soon after it was published and I immediately thought, "I wonder if I could duplicate that effect using Algodoo". Well, I no longer need to think about it, nor do I need to do it!.
Nice job on the scene, and it's an excellent demonstration of a real-life effect!
Reminds me of the San Francisco cable cars. Imagine if they had lead-screws under the streets propelling those vehicles around the city! Not very practical of course. Interesting concept, though.