Gravity: Difference between revisions
Jump to navigation
Jump to search
(Fixing a mistake) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 40: | Line 40: | ||
## Mario's vertical speed is decreased by 2. | ## Mario's vertical speed is decreased by 2. | ||
## If Mario's vertical speed is less than -37.5, it is increased by 4. | ## If Mario's vertical speed is less than -37.5, it is increased by 4. | ||
## | ##* Then if Mario's vertical speed is more than -37.5, it is capped/set to -37.5. | ||
## Mario now stops these gravity checks. | ## Mario now stops these gravity checks. | ||
# If Mario is still in these checks: | # If Mario is still in these checks: |
Latest revision as of 03:39, 5 July 2019
Gravity is the general idea of accelerating towards a center of mass, often "down". In Mario 64, this is less consistent than real life and depends significantly on the object and the situation. This could be an acceleration or more of a velocity depending on the situation.
Mario
Mario generally does a series of checks and changes his velocity depending on the situation. Once Mario performs any changes to his vertical speed, he is done with gravity and applies no more changes.
- If Mario is in the twirling action and has negative Y-speed:
- If Mario is spinning with a yaw speed faster than 1024:
- Mario's terminal velocity is set to -75 * 1024 / Mario's yaw speed.
- Mario's vertical speed is increased by -4 * 1024 / Mario's yaw speed.
- Otherwise:
- Mario's terminal velocity is set to -75.
- Mario's vertical speed is decreased by 4.
- If Mario's vertical speed is less than his terminal velocity, it is set to the terminal velocity instead.
- Mario now stops these gravity checks.
- If Mario is spinning with a yaw speed faster than 1024:
- If Mario is in the shot from cannon action:
- Mario's vertical speed is decreased by 1.
- If Mario's vertical speed is less than -75, it is capped/set to -75.
- Mario now stops these gravity checks.
- If Mario is in the long jump, slide kick, or BBH enter spin actions:
- Mario's vertical speed is decreased by 2.
- If Mario's vertical speed is less than -75, it is capped/set to -75.
- Mario now stops these gravity checks.
- If Mario is in the lava boost or fall from star grab actions:
- Mario's vertical speed is decreased by 3.2.
- If Mario's vertical speed is less than -65, it is capped/set to -65.
- Mario now stops these gravity checks.
- If Mario is in the getting blown action:
- Mario's vertical speed is decreased by some number that is set elsewhere.
- If Mario's vertical speed is less than -75, it is capped/set to -75.
- Mario now stops these gravity checks.
- If Mario has the 0x100 flag, his action does not have the "invulnerable" or "intangible" but has the "control jump height" action flags, his vertical speed is more than 20, and A is not held:
- Mario's vertical speed is set to a quarter of its value.
- Mario now stops these gravity checks.
- If Mario's action has the "metal water" flag (metal cap and underwater):
- Mario's vertical speed is decreased by 1.6.
- If Mario's vertical speed is less than -16, it is capped/set to -16.
- Mario now stops these gravity checks.
- If Mario has the wing cap, A is held, and Mario's vertical speed is negative:
- Mario's animation is changed
- Mario's vertical speed is decreased by 2.
- If Mario's vertical speed is less than -37.5, it is increased by 4.
- Then if Mario's vertical speed is more than -37.5, it is capped/set to -37.5.
- Mario now stops these gravity checks.
- If Mario is still in these checks:
- Mario's vertical speed is decreased by 4.
- If Mario's vertical speed is less than -75, it is capped/set to -75.