Stormworks: Build and Rescue

Stormworks: Build and Rescue

Physics Sensor Transformer
17 条留言
May  [作者] 2024 年 9 月 14 日 下午 4:47 
- 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  [作者] 2024 年 9 月 14 日 下午 4:45 
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 2023 年 10 月 28 日 下午 7:11 
It outputs in radians. Put it through a function for -(x/pi2) to make it match the standard compass sensor
TATAKAE 2023 年 10 月 19 日 下午 2:58 
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 2023 年 9 月 9 日 下午 4:26 
the physics sensor was one of the best aditions to SW, change my mind.
Comrade Da 2023 年 7 月 26 日 上午 7:05 
I love you
W'rkncacnter 2023 年 7 月 12 日 下午 5:21 
Fantastic! Thank you for this.
Olie 2023 年 6 月 20 日 下午 11:23 
in the lua: "z:downword +"
lmao, its nice to know im not the only one who makes mistakes :os_niko:
Nukhind3000 2023 年 6 月 3 日 下午 11:14 
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 2023 年 5 月 18 日 下午 2:00 
doing god's work
It_aint_me 2023 年 5 月 6 日 上午 6:37 
This has been a lifesaver, thanks!
cornbread829 2023 年 4 月 26 日 下午 6:43 
For others wondering, azimuth (compass) appears to be in radians.
Adan 2023 年 4 月 20 日 上午 10:14 
is the azimuth in turns?
Michi 2023 年 4 月 9 日 上午 7:41 
I love it
kαnyε 2023 年 4 月 6 日 上午 7:36 
thanks, had a hard time trying to convert the angles.
Psychonium 2023 年 3 月 5 日 下午 1:21 
how does the compass part of it work?
ΛVΞΓIUM 2023 年 2 月 28 日 下午 12:33 
Thanks man. I would have rather quit the game than make this myself.