RE Gonzo:
I have a version where I added a backup killer if it back-fired. but wanted to keep it simple and realistic. Pushed the limits when tuning the fly-wheal mas and timing mark, so may very on reliability for PC spec+-? I'm sure someone can tune it better than me!
Dose work better without the springs, if you brace it (but real engines have springs)
While tuning i adjusted:
Red collision primer (spark plug) OnCollide script- Mass, size, (position y+), keeping mass down so the car can move.
Bottom of stroke mass killer position.
Fly-wheal Mass.
The mass and friction of moving parts.
Offset fly-wheal counterbalance.
Slit for fuel to flow (even with non parallel movement).
Most of all, please have a go at tuning or making one better, It has to be small, strong, use hardly any CPU and runs on liquid (no cheating!).
Well most of my time was trying to optimizing my original design so it worked. There is a lack of realistic combustion engines here (why I did this one).
Cheers guys for the feedback, I have implemented both suggestions. The fuel pump idea was very successful!
I added vel := e.vel to the addCircle but it did not make much difference when the car was moving at high speed but it helped. I could see its effect but i think its the spawn point lagging as when the circle appears its a bit out of place sometimes.
I managed to bring down the mass of the circle, and that made a big difference, but i had to then re tune everything
Its working a lot better now, I will play with it for a few more days then post version 2
@Adjudicator 1000: Its working OK for me in Algodoo? but then again i have the pull back adjusted very weak so it dose not pop up there heads. It could do with some adjustment.
I'm actually thinking about doing more toy/game reproductions from the old days. Like Mouse-Trap. Its a lot of fun trying to make them work as you remember or watching Youtube videos to get the idea.
@Matawin3: its to let people know it uses liquid as a fuel. most engines here that do not. Also don't forget not all fuel is liquid. Hydrogen is a gas and Cole is solid. Some rockets use solid fuel. (You can find them on here).
This is cool, Works very well
I was working on a similar idea today for expanding fuel where the radius expands as the density diminished. kind of softer explosions to use in an engine so it dose not shake apart.
@Adjudicator 1000, I'm going to give it a go, just trying to work out how to do the Z movement of the boot at the beginning. It will be linear (like the game was flattered out) so things are not behind other things.
Hungry Hippo also springs to mind (you could go on for ages) has anyone ever made a slinky LOL? "Everyone loves a slinky"...
I don't know why i don't reach critical speed (Like it gets faster and faster). I think its because the length of my piston stroke is very short. Kind of real as the last real car engine i worked on was just as hit and miss
EDIT: I have found a problem that when the engine is tilted sideways the sporing point dose not take into consideration. OMG now i have to do math! Or use pos probe
Kindly @matawin3 - We should collaborate making a car, I have seen you're design's and there COOL. How about a destruct'ble car with a destruct'ble engine? I recon with some scaling and tuning it will work...
Yes Its just to much of a tight fit, even with no friction it still touches the sides too much. Try and make the middle part just a bit smaller.
Kilinich's suggestion dose it very well.
Well it seams that Algodoo dose not release memory after an object is deleted. So the hole idea about spawn engines will always result in an out of memory if you let it run a long time.
The best way would to not delete them but to transport them somewhere and then on collision transport them back. So i recon i will start to look into spring/bounce and magnet motors...
But you know it works faster if you cut a small hole in the bottom of the liquid tank.
You need to test this pump by pumping the liquid above the pump. I tested it and it worked fine if you make it a bit smaller (by selecting all then Ctrl+A, while holding down shift; using the resizing tool)
But still its a cool scene, and well worth playing with
I found you problems, and got your engine working quite well. I have saved the scene if you want it. Timing and everything else seams good, but had to change the things below.
1. Reduce friction of pistons to 0. Car engines use oil to reduce friction.
2. Increased the density of the pistons and the piston shafts (engine block) so the pistons stayed in them middle and ran smoothly. If the density is to low things become too soft and collide threw each other.
3. Thickened the bouncing bars at the top to stop them from going threw there stopper; same thing as #2, overall strengthening.
4. Played with the dampening and strength of the springs (lowered). I noticed one popped off and span around the screen very fast LOL.
5. Set the density of the explosions to 2.0. This helps stabilize the engine, and would allow you to detach it from the background without it flying around.
6. Increased the diameter of the flywheels so there was more momentum (Hold shift while using the resizing too, so they stay round)
7. Removed the piston rings so I could adjust the pistons.