Angle: Difference between revisions
m (slightly less bad) |
SuperHamster (talk | contribs) m (Bolding title in lead) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Angles are a measurement of a separation between two rays. | '''Angles''' are a measurement of a separation between two rays. Using trigonometry, angles give substantial information relating to the position and velocity of an object. | ||
==Yaw, Pitch and Roll== | ==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. | |||
==Trigonometry== | |||
Instead of calculating them in real time, the game uses a look-up table for values of the trigonometric functions Sine and Cosine. | |||
==Angular Unit== | ==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 [[Parallel Universe|PU]] movement). | 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). | ||
[[Category:Mechanics]] |
Latest revision as of 03:34, 8 May 2021
Angles are a measurement of a separation between two rays. Using trigonometry, angles give substantial information relating to the position and velocity of an object.
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.
Trigonometry
Instead of calculating them in real time, the game uses a look-up table for values of the trigonometric functions Sine and Cosine.
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).