RNG: Difference between revisions

20 bytes added ,  21 March 2020
m
no edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 91: Line 91:


==Cycling RNG==
==Cycling RNG==
Because RNG indeces loop from 0 to 65113 and back to 0 again, by looping through every RNG index Mario can reach any reachable RNG value. By making [[dust]], Mario can advance RNG 4 times per frame, which takes 9 minutes to loop. If objects are calling RNG, this time will be much faster.
Because RNG indices loop from 0 to 65113 and back to 0 again, by looping through every RNG index Mario can reach any reachable RNG value. By making [[dust]], Mario can advance RNG 4 times per frame, which takes 9 minutes to loop. If objects are calling RNG, this time will be much faster.
==Objects that call RNG==
==Objects that call RNG==
The following objects always call RNG under the given circumstances.
The following objects always call RNG under the given circumstances.
Line 102: Line 102:
* And many, many, many more.
* And many, many, many more.
===[[Tick Tock Clock]] Random Setting Only===
===[[Tick Tock Clock]] Random Setting Only===
The following objects call RNG under the given circumstances when the clock was entered at 6:00 (the random setting). Click on the link for more details.
The following objects call RNG under the given circumstances when the clock was entered at 6 (the random setting). Click on the link for more details.
* [[Spinner#Random Setting|Spinners]]
* [[Spinner#Random Setting|Spinners]]
* [[Cogs]] call RNG twice when they reach their target [[angular velocity]] (TAV)<ref>https://www.youtube.com/watch?v=S0q3_toE3b4</ref>. The cog approaches its TAV with an angular acceleration of ±50AU/frame². The first call determines the cog's next TAV. Because of the way the formula is structured, there is a possibility that the TAV is 0. If this occurs multiple times, the cog can stand still. The TAV is calculated by the following formula:
* [[Cogs]] call RNG twice when they reach their target [[angular velocity]] (TAV)<ref>https://www.youtube.com/watch?v=S0q3_toE3b4</ref>. The cog approaches its TAV with an angular acceleration of ±50AU/frame². The first call determines the cog's next TAV. Because of the way the formula is structured, there is a possibility that the TAV is 0. If this occurs multiple times, the cog can stand still. The TAV is calculated by the following formula:
Line 121: Line 121:
==References==
==References==
<references />
<references />
[[Category:Mechanics]]