First enter this on a command computer: pastebin get KPF7R6Pu rpm.lua
Then run the program
The first value is RPM updated every frame, the second value is RPM averaged over a second
The program computes RPM based on the block’s own rotation, so it can be off centered, or rotate by any axis and the program should always display the correct value
With that you should be able to get a relatively precise measurement
:clueless:
if you want to change it just replace the value at line 90
like I realized at some point that i did the same mistake in the variable’s name
and its open source so its 100% not going to steal all of your personal data, obvously
:clueless:
its not that hard
🤓
All it does is:
Get ship rotation as quaternion because quaternions are better
Compute the difference between last frame using a simple quaternion inverse and multiply
Use the formula to get the shortest angle between the two
Convert it from rad/t to RPM (radians per tick to full rotations per minute)
Displays it in the actionbar
like the other stuff is not really hard, but using quaternions can be a little trickier (they are hypercomplex numbers, an evolution of complex numbers)
(it literally make the world unusable if you paste this on a command computer
💀)
the program basically spams every command known to man and this multiple times a second
This conversation is on Discord · Reply there
image.png