Angle: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(Made this because the angular unit page said to. I don't know how to delete pages so someone delete the angular unit page.)
 
m (slightly less bad)
Line 1: Line 1:
Angles are a measurement of a separation between two rays.  
Angles are a measurement of a separation between two rays.  
==Yaw, Pitch and Roll==
==Yaw, Pitch and Roll==


TODO
Yaw, Pitch, and Roll are the three turning directions that can be used to represent any angle in 3D space. Yaw is the angle along the X-Z axes. This angle is taken relative to the positive Z-axis, meaning that directly facing the positive Z-direction corresponds to an angle of 0, while facing directly away corresponds to 180 degrees. Pitch is the angle along the Y-Z axes.  Roll is taken along the Y-X axes.
==Angular Unit==
==Angular Unit==
An '''angular unit''' or '''angle unit''' is a unit of measurement that describes an angle, specifically yaw, pitch, and roll. Similarly to how there are 360 [[wikipedia:degree (angle)|degrees]] or 2π [[wikipedia:radian|radians]] in a circle, there are precisely 65536 angular units in a circle. The game's trigonometry look-up table, however, is only 1/16 as precise, so angles from 0 to 15 function exactly the same. Other units of measurement used are [[Hexadecimal Angle Unit]]s, revolutions, the aforementioned degrees and radians, and [[wikipedia:gradian|gradians]].
An '''angular unit''' or '''angle unit''' is a unit of measurement that describes an angle, specifically yaw, pitch, and roll. An angular unit in Super Mario 64 is equal to 1/65536 of a circle. This translates to about .0055 degrees per unit, or about 182 units per degree. Since the game's trigonometry look-up table is only 1/16 as precise, two different angles may be considered the same if they both are rounded to the same value. Since 16 angular units is less than .1 degrees, this is never noticeable in regular gameplay but can come in to play in with large speed values (e.g. for [[Parallel Universe|PU]] movement).
 
==Angles in Super Mario 64==
 
TODO

Revision as of 16:22, 31 March 2020

Angles are a measurement of a separation between two rays.

Yaw, Pitch and Roll

Yaw, Pitch, and Roll are the three turning directions that can be used to represent any angle in 3D space. Yaw is the angle along the X-Z axes. This angle is taken relative to the positive Z-axis, meaning that directly facing the positive Z-direction corresponds to an angle of 0, while facing directly away corresponds to 180 degrees. Pitch is the angle along the Y-Z axes. Roll is taken along the Y-X axes.

Angular Unit

An angular unit or angle unit is a unit of measurement that describes an angle, specifically yaw, pitch, and roll. An angular unit in Super Mario 64 is equal to 1/65536 of a circle. This translates to about .0055 degrees per unit, or about 182 units per degree. Since the game's trigonometry look-up table is only 1/16 as precise, two different angles may be considered the same if they both are rounded to the same value. Since 16 angular units is less than .1 degrees, this is never noticeable in regular gameplay but can come in to play in with large speed values (e.g. for PU movement).