Piston
» Screenshots » Downloads | » Stats » Comments |
Total downloads: 2,394
Latest version: 1.0
Release date: 05/24/2009 - 05:29
This is a demonstration on how to create sinusoidal linear motion, using a piston to transfer rotational into linear motion.
This is a playable level, but to see how it works, edit the level and turn visualdebug on, and adjust the minx to -1000 and maxx to 1000. Then scroll left to see the piston.
A useful property to be aware of is contacts="false" on non-static geometry. This prevents it from interacting with any other geometry or balls, allowing you to place the piston off-screen and use a long drive shaft with contacts="false" to transfer the motion to the correct place. This is not particularly used in this demo level except to create the horizontal guide rail.
I also use contacts="false" on the piston rod to prevent it interfacing with the shaft, allowing for a shorter rod and a longer, steadier shaft. This isn't particularly relevant if the piston is offscreen, but is useful for space-saving when it isn't.
The max distance travelled by the rod is of course dependent on the radius of the flywheel. Remember to adjust positions (particularly of the invisible hinges) when changing this. The speed is controlled by the rotspeed on the flywheel.
In this level I wanted to move a structure horizontally. Of course the structure has weight and sags to the ground on the non-hinged edge. To get around this, I built a long thin guide rail across the screen, which attachs to another rod in a shaft offscreen to the right. I set contacts="false" to prevent it interacting with anything, and then I hinged the structure to the guide rail in two separate places.
You can't use line walls, because anything non-static the "wrong" side of them is considered illegally placed and ODE goes berserk trying to stabilise the simulation. For this level I replaced them with large rectangles.
The scene XML is commented to show how it works.
Version | Platform | Release Date | Filename | Size | Downloads |
---|---|---|---|---|---|
1.0 | All | Sun, 05/24/2009 - 05:29 | net.davidc.test.piston_1.0.goomod | 4.36 KB | 2,394 |
There is 1 current download.
- Login to post comments
Sun, 05/24/2009 - 12:25
interesting and useful for future levels.
thanks mad scientist.
| Fly Her to the Moon (with Antigravity Goo) | Infinitive Windows Freezer (unlimited Goo playground) |
Sun, 05/24/2009 - 18:49
Much appreciated.
Imagination is more important than knowledge - Einstein
Tue, 05/26/2009 - 10:24
This should make some interesting and difficult levels. Getting to the pipe not easy when that piston is a pumping. The mechanics look and work a treat. Shame that the editor does not like the dynamic geometries. Having to work around makes level designing & planing even more difficult.
Tue, 05/26/2009 - 11:49
What I did was design it without the background image, with visualdebug on so I could see the geometry, and then add the image at the very end.
Thu, 05/28/2009 - 14:23
David, your piston level is not easy to replicate. I had no problem getting a simple piston working in the vertical position. It's connecting anything to it that is giving me problems. I guess it's the connecting of hinges. How important is the mass parameter? Any chance of a vertical piston example, then I might figure out what I am doing wrong.
Thu, 05/28/2009 - 18:49
Vertical motion should be much easier, since you don't need a guide rail at all. All you need are the three geometries from the left hand side (rotating circle, arm, rod). Then gravity should do the rest, if you put sufficient mass on the thing you're moving. Let me know if that doesn't help and I'll make a vertical piston sample.
Also, make sure all geometries comprising your piston are material="machine", which is frictionless. And of course be sure to use visualdebug while developing to see how it is working.
Fri, 05/29/2009 - 04:48
As I said the piston works fine. It was transferring the moment to push and pull. Don't you still need something hinged to rod1b? I will give it another go, now I have a clearer idea of how it works. Certainly working with visualdebug helps.
Fri, 05/29/2009 - 16:40
Yes you can hinge the object you want moved directly to rod1b if it's adjacent. Otherwise build another rod in between and hinge that to rod1b, then hinge your object to the new rod. Hinge points should be within the relevant objects (unfortunately they don't show up on visualdebug)
Fri, 05/29/2009 - 17:04
At last I am making progress, ta for the help. Is there a formula for working out the mass settings? I have been doing a good deal of trial and a lot of error. My piston just keeps giving up half way round.
Fri, 05/29/2009 - 17:24
I didn't really have any problems with mass so I didn't experiment much. Make sure your piston parts are "machine" material. You might also add a forcefield surrounding the piston that exactly counteracts gravity on your level.
Mon, 07/13/2009 - 16:35
Nice Got 12 goos on my second try.
Tue, 03/23/2010 - 16:58
555downloads lol
Sun, 08/01/2010 - 21:24
haha now 666 downloads LOLOL
I'm playing Minecraft. My username is theMineMaster2. If you want to see my Cartoony mods updated, then be a Mac user and find a image editing program that isn't confusing for me
Mon, 10/11/2010 - 21:42
You could always use a SLIDER joint, too.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Tue, 10/12/2010 - 08:33
But they aren't motorized.
Besides that, they were just discovered, and this mod was waaaay before then.
IRC | Chapter Tutorial | Reference Guide
Tue, 10/12/2010 - 16:17
Yes, I just meant:
1) for the 2 pistons to be on a "rail"
2) as a new version
That's all. I was on the site before they were discovered.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Tue, 10/12/2010 - 16:39
Ah, ok. That makes sense. I was just making sure...
IRC | Chapter Tutorial | Reference Guide
Sat, 02/12/2011 - 12:41
thanks dude, I designed a pair of bending and moving legs out of this, as well as objects that rock back and forth in water, and a teeter totter that moves up and down, as well as a rising and lowering platform
now i just need to make them -.-
Sat, 02/12/2011 - 12:46
Now THAT sounds like an epic level. -.-
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Sat, 02/12/2011 - 18:22
whats with the "-.-"?
Sat, 02/12/2011 - 18:53
It's an emoticon. You used it in your previous post as well.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Sat, 02/12/2011 - 20:58
lol nvm thats not what i meant
Thu, 06/30/2011 - 08:47
Easy! Got OCD on first try! And no time retry!
Thu, 06/30/2011 - 10:23
Hence why this addin is in the sample category. Read the description.
IRC | Chapter Tutorial | Reference Guide
Thu, 06/30/2011 - 15:18
DavidC should update this mod so the pistons look more like this.
Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.
Sat, 07/02/2011 - 16:09
LOL, when I saw this on Recent Posts I actually thought it was about Minecraft!
Check out my SoundCloud, MomoSoundWaves
Fri, 07/08/2011 - 12:36
What does LOL means? And how does this level is called in the editor?
Fri, 07/08/2011 - 13:02
LOL means Laugh Out Loud
Check out my SoundCloud, MomoSoundWaves
Fri, 07/08/2011 - 13:35
And this level is called "Piston" in the editor. You should have been able to figure that much out.
IRC | Chapter Tutorial | Reference Guide
Mon, 07/11/2011 - 01:16
I just want to know what for animation is it that the geometry is moving left and right! How is it called?! I will need to know may be for some of my levels!
Mon, 07/11/2011 - 06:49
Maybe if you read the description you would know already.
And you could even open the level up in WooGLE to see how davidc set it up.
IRC | Chapter Tutorial | Reference Guide
Mon, 07/11/2011 - 08:01
Ok I'll have a look! If there will be something questions me to ask I'll ask...
Is it possible that you put not only to the left and right but up and down?
Mon, 07/11/2011 - 10:33
Yep. I did this in my level "Rabid Maniac" in fact. You can take a look at it in WooGLE.
IRC | Chapter Tutorial | Reference Guide
Wed, 07/09/2014 - 15:16
I collected 12 balls
Tue, 12/22/2015 - 13:56
Wed, 11/17/2021 - 14:11
https://
An above average goofan.