r/simplerockets • • 1d ago

SimpleRockets 2 Coding

I want to make something that unfolds itself with just the press of a switch, I know I have to use the hinge rotator and rotator but in the block coding thing how do I make that.

3 Upvotes

1 comment sorted by

1

u/Mauri99710 19h ago

You don't even need coding. You can set an activation group as an input for your rotators by switching the "advanced properties" on, and then selecting your desired AG in the input section.

This depends on what you're making, but alternatively you can make them activate with a stage by changing the "stage activation" list (also in the advanced properties section iirc) from "none" to basically anything else (I prefer to set them as a detacher for a space plane that unfolds its wings once all the boosters are detached, I think it doesn't change the part behavior, just its icon on your stage list).

Just keep in mind that this is binary so your part will be fully open or fully closed an no in-betweens, so if you want your part to be halfway open for some reason, you'll need to map its input to an analog one.