-
Train Trigonometry
Hello Fellows,
I’m trying to build a a Stirling engine with expressions
This is what I have so far…
https://www.youtube.com/watch?v=ZpIzXyB3LAc&feature=youtu.beHow could I change the code so the piston stayed in the tube?
r = thisComp.layer("rotary").transform.rotation;
t = Math.floor((time+3)/2)%2
o = 0;
if (o = t) {
Math.sin(degreesToRadians((r+360)/2))*180
} else {
Math.sin(degreesToRadians(r/2))*180
}Prepare for today and you’ll survive, prepare for tomorrow and you will thrive.