468
edits
(updated) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
function RNG: | function RNG: | ||
if RNGSeed | if RNGSeed is 22026: | ||
set RNGSeed to 0 | set RNGSeed to 0 | ||
Line 82: | Line 82: | ||
Now we return the seed. 1010101001010101 in decimal is 43605, which is the expected result. | Now we return the seed. 1010101001010101 in decimal is 43605, which is the expected result. | ||
===Description=== | ===Description=== | ||
[[File:RNG Graph.png|500px|right|A graph showing notable RNG values and indices in SM64.]] | [[File:RNG Graph.png|500px|right|A graph showing notable RNG values and indices in SM64.]] | ||
Line 90: | Line 91: | ||
==Cycling RNG== | ==Cycling RNG== | ||
Because RNG | 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 101: | 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 | 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 120: | Line 121: | ||
==References== | ==References== | ||
<references /> | <references /> | ||
[[Category:Mechanics]] |