Profile image

Piston power and how to offset their cycles

23.1k Scratchoza  3.6 years ago

(If you don't want to read my less understandable guide then you can just click these links to download sum self-starting piston engines straight, v, big boi )

cycled pistons can be used to make engines/motors by using the cycle feature, but (as far as I know) can't be offset by any angle other than 180 degrees (push or pull)
2021-04-15-14-47-11-Trim.gif

but we can use SimpleFunctions™ like sin or cos, and sum function to make cycles and offset them.
ex.
sin(sum(INPUT) * SPEED) or cos(sum(INPUT) * SPEEDMULTIPLIER)
If you want to make it self-staring you'll want to rotate another piston by 90 degrees or advance the cycle by 90 degrees (one piston is using sin and the other cos)
ex.

2021-04-15-15-17-51.gif

or

2021-04-15-15-11-09.gif
(the two cranks are connected to each other)

the problem here is the piston using the cos function pushes or pulls from the start without input so we shall put a minus 1 in the input
ex.
sin(sum(INPUT) * SPEED) and cos(sum(INPUT) * SPEEDMULTIPLIER) - 1
or
sin(sum(INPUT) * SPEED) - 1 and cos(sum(INPUT) * SPEEDMULTIPLIER)
Now just put an angle to the other piston
ex.

Screenshot-2021-04-18-162827.png

  • Log in to leave a comment
  • Profile image
    5,349 SimonGlaser

    @Scratchoza ok. thank you, anyway

    2.5 years ago
  • Profile image
    23.1k Scratchoza

    @SimonGlaser It is, though I cant really figure out a code rn sorry. I think that kind of code uses clamp somewhere

    2.5 years ago
  • Profile image
    5,349 SimonGlaser

    Hey, is it possible to make the piston move Up, Down, then wait for a bit, then again up, down, wait, etc? I want to make a replica of a engine and I need the pistons for the valves

    2.5 years ago
  • Profile image
    93.4k winterro

    @scratch thx, this is great 😁

    3.6 years ago
  • Profile image
    23.1k Scratchoza

    @winterro I hope you will be able to understand this lol

    3.6 years ago