Well, it's ok!
But you should make the circles a bit bigger, delet the half of them, delete all the lasers and replace them with circles that change collideSet, and make the collision boxes bigger!
MrGlinzz: On the red box, on the scripts menu, there's an item called materialVelocity, that makes the box sides like a conveyor belt. Then, if the box has friction 0, it won't work, but if it has friction >0, it will move the circle, rotating it. The lasers change the box friction to give it more power, but if the box friction is +inf, and you want more power, you should add more materialVelocity.
faytree: Thanks! It's faster than my Ford F150 engine, that uses this principle, but on the pistons.
Mustang41: It doesn't matter. If you want you can, but don't care.
MrGlinzz: Yes, you're right. It's like a conveyor belt that rotates the circle, and with more friction, more torque. But the materialVelocity can be higher, but it would go at this speed, because the hinges max speed is that.
Now I'm making a VW Passat 2013, and I've noticed that springs are better rotating joints than hinges. You'll see!
Gent: No, it works with a kind of engine. It doesn't create any drag as you can see when the engine is idling, it just makes the circle to rotate.
Piston engines are somewhat weak compared to another types, like rotary collision. Rotary spawn engines (There are a few in Algobox) are stronger than collision pistons, because they don't have any piston rod that gets rid of the energy (damping) and it's spawn type!
And really, we've made strange things with pistons - look at those linkages, just to get 10 Nm more!
Maybe, the ZPEngine cheats a bit. It gives some drag too!
faytree: Right, but if you want more power, you have to make the materialVelocity setting lower (for example, now it is at -50, you have to put it at -60 or less!).
Mustang41: Thanks! I just can't believe that this light scene (30 kB) can be rated 7!
@MrGlinzz: Maybe with a collision engine it could be used by changing the box distance, or collideSet and having different boxes on the piston at different distances. I'll post an example!
Wow, so smooth!
But as Gent says, you could use a lower gear on the engine-legs transmission to make the engine spin some more fast, and it will give you more power and speed!
If you want to speed it up, you should give the pistons a shorter place to move (move the rods closer to the center of the flywheel).
Good job anyways!
vaidas369, put the two objects one upon the other, then hinge them and move one of the objects holding Alt. Then put on the script menu of the hinge hingeConstant= 1e-030 (no more).
Hope you understand!
Cool, but I'd put the spring in the cylinder, and make the accelerometer dependent of the engine. And you can use a stretched hinge for the connection between the engine and the rear wheel. (Use only one wheel, a 4wd car goes slower).
In the spring, use legacyMode 0 or 3. If you're using legacyMode 3, put constant 150 or more, and dampening -1.
And in the piston, put inertiaMultiplier 5 or 10, to avoid turning it. Move the rod closer to the center, not much, and if you can, make the spring turn like toni's engines. (That will need two springs turning opposite on Algodoo. See my Mercedes C250 CDI's engine.)
Oh, and never use polygons on the block or the piston! The polygons have worse collision than a box or a circle. Use boxes.
@Mustang41: It doesn't move because of those crappy gears.
Feedback Here:
1 Move the piston rod closer to the center of the flywheel,
2 Delete the heavy flywheel. You don't need it.
3 Make the engine crankshaft heavier (15 kg is enough),
4 Make the ball spawner a circle that collides with the cylinder (it will spawn 1 circle at a time, that's much better),
5 Make the ball radius 0.25, so that it fits perfectly on the block,
6 Make the ball and piston restitution 0. That will give the engine a speed and strenght boost,
7 Change the gearbox gears to circles with +inf friction, and 0 restitution. That will give you more traction (a lot!).
Wow, now it's faster!
But at max speed balls get fired out of the engine. Maybe with a killer ring out of it!
Anyways, I shouldn't worry about that. It works very well!