Stormworks: Build and Rescue

Stormworks: Build and Rescue

Physics Sensor Transformer
18 Comments
qbzephyr 29 Jun @ 3:35pm 
idk but i think it was written by chatgpt
May  [author] 14 Sep, 2024 @ 4:47pm 
- Next, I updated the velocity output code. This makes it easier to match positive and negative values when the output doesn't align with the coordinate system used by various users. It also reduced the number of local functions by one. This change sacrificed some reusability, but who really cares about that? Readability is far more important.

Lastly, I reorganised the entire code. I rearranged the structure and rewrote the comments to make everything clearer. Thanks to Doomer Ralsei for spotting a typo. In Japanese, the 'o' and 'a' in 'word' and 'ward' are transliterated into the same vowel, so it's hard for me to tell them apart.

Thank you for using this microcontroller for so long. I'm glad that it's been helpful for you all.
May  [author] 14 Sep, 2024 @ 4:45pm 
Hello, everyone.
I haven't updated this for a while, but as there have been a lot of updates to the game, I decided it was time to make a few changes.

You may not be too interested in this, but I've made some changes to the internal calculations. I've adjusted it to pass through the outputs of the tilt and compass sensors, which were added in physics sensor by the Stormworks development team. This change slightly reduces the number of calculations. The tilt sensor values are still output to the same channels as before, and for compatibility, I've kept the Tilt z output in channel 18. I doubt anyone is using the absolute angular velocity in channel 14, hence I replaced it with the compass sensor's value. -
epflederer 28 Oct, 2023 @ 7:11pm 
It outputs in radians. Put it through a function for -(x/pi2) to make it match the standard compass sensor
TATAKAE 19 Oct, 2023 @ 2:58pm 
I got a question about output 6. Euler angle (Azimuth, North:0, CW)
This is basically a compas, right? but what numbers does it use?
It outputs a number from 0 to something around 6.x...
Cailean.Coleman 9 Sep, 2023 @ 4:26pm 
the physics sensor was one of the best aditions to SW, change my mind.
Comrade Da 26 Jul, 2023 @ 7:05am 
I love you
W'rkncacnter 12 Jul, 2023 @ 5:21pm 
Fantastic! Thank you for this.
Olie 20 Jun, 2023 @ 11:23pm 
in the lua: "z:downword +"
lmao, its nice to know im not the only one who makes mistakes :os_niko:
Nukhind3000 3 Jun, 2023 @ 11:14pm 
You have saved my ass from having to Learn Calculus in order to use the Phys Sensor for a Gyro.
I thank you.

Mind if i Steal your code?
Winterflux 18 May, 2023 @ 2:00pm 
doing god's work
It_aint_me 6 May, 2023 @ 6:37am 
This has been a lifesaver, thanks!
cornbread829 26 Apr, 2023 @ 6:43pm 
For others wondering, azimuth (compass) appears to be in radians.
Adan 20 Apr, 2023 @ 10:14am 
is the azimuth in turns?
Michi 9 Apr, 2023 @ 7:41am 
I love it
kαnyε 6 Apr, 2023 @ 7:36am 
thanks, had a hard time trying to convert the angles.
Psychonium 5 Mar, 2023 @ 1:21pm 
how does the compass part of it work?
ΛVΞΓIUM 28 Feb, 2023 @ 12:33pm 
Thanks man. I would have rather quit the game than make this myself.