Editing Unit

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
All [[wikipedia:Floating-point_arithmetic|floating-point numbers]] in the game's code that represent sizes or distances represent them using the same scale, and the distance represented by a value of 1 on this scale is known as a '''unit'''. A unit is equal to roughly 0.7% of Mario's height (conversely, Mario is about 142 units tall), but despite being extremely small, units are not the smallest meaningful distance in the game's engine since distances in units are represented using floating-point numbers rather than [[wikipedia:Integer_(computer_science)|integers]].
All [[wikipedia:Floating-point_arithmetic|floating-point numbers]] in the game's code that represent sizes or distances represent them using the same scale, and the distance represented by a value of 1 on this scale is known as a '''unit'''. A unit is equal to roughly 0.7% of Mario's height, but despite being extremely small, units are not the smallest meaningful distance in the game's engine since distances in units are represented using floating-point numbers rather than integers.
 
Other units of measurement are derived from these base distance units. For example, speed is generally measured in units per [[wikipedia:Frame_rate|frame]], while acceleration is measured using units per frame squared, analogously to [[wikipedia:Metre_per_second_squared|meters per second squared]].


Although it is impossible to see any unit-based values in an unmodified version of the game, various mods created for the purposes of glitch hunting allow viewing variables such as Mario's coordinates, which are by definition represented in units.
Although it is impossible to see any unit-based values in an unmodified version of the game, various mods created for the purposes of glitch hunting allow viewing variables such as Mario's coordinates, which are by definition represented in units.
[[Category:Technical]]
Please note that all contributions to SMO.wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see SMO.wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Retrieved from "https://smo.wiki/Unit"