Getting Speed, Yaw, Pitch from GlobalWind X, Y, Z Attributes

Hey, I’m just writing a simple script to display the speed, pitch, and yaw of the GlobalWind workspace attribute similar to how the Wind Direction widget does. Problem is these attributes aren’t directly stored under GlobalWind and are instead translated into X, Y, and Z variables that are seemingly all relational to the wind’s speed, pitch and yaw, yet theres no direct way to access what I want.

Changing the Speed and Pitch variable using the Wind Direction widget appears to affect all three variables, while changing the Yaw only affects the X and Z variables. I’m not sure if theres a way to access the internal functions of this widget or if I’ll just have to reverse engineer it.

As an example heres a Wind Direction widget with 1000.0 sps, 359 degree yaw, and 0 degree pitch and the related GlobalWind values:
image
image

If you have any knowledge on how these values are calculated please let me know! Please don’t feel like you need to reverse engineer this on your own though.

Basically this is an internal function from the plugin, but I was able to receive it and implementation with help from PotionSeller33.

Below are the functions needed for this:

Obviously, big thanks to PotionSeller33 and everyone else who worked on GlobalWinds and the Wind Direction Plugin. Hopefully this will appear whenever someone looking for this searches it up.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.