Movement steps: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
{{stub}}
Typically, Mario's position is updated incrementally using his velocity. These increments are called '''steps''', and they behave differently when Mario is on the ground, in the air, in water, hanging, and climbing a pole. When on the ground or in the air, these steps typically occur four times per frame, and are commonly referred to as '''quarter steps''' or sometimes '''quarter frames'''.
Typically, Mario's position is updated incrementally using his velocity. These increments are called '''steps''', and they behave differently when Mario is on the ground, in the air, in water, hanging, and climbing a pole. When on the ground or in the air, these steps typically occur four times per frame, and are commonly referred to as '''quarter steps''' or sometimes '''quarter frames'''.


Line 48: Line 46:
* If Mario's velocity is not negative, his "peak height" is updated.
* If Mario's velocity is not negative, his "peak height" is updated.
* Mario's step noise is updated based on his floor.
* Mario's step noise is updated based on his floor.
* If Mario is not flying, [[gravity]] is applied.
* If Mario is not flying, [[Gravity#Mario|gravity]] is applied.
* [[Vertical Wind|Vertical wind]] is now applied/accounted for.
* [[Vertical Wind|Vertical wind]] is now applied/accounted for.
* Mario's visual position is updated to Mario's position.
* Mario's visual position is updated to Mario's position.