Pivot: Difference between revisions

Xiivler (talk | contribs)
Explained what a pivot is, which is needed to fully explain the sideways crouch roll tech
 
Xiivler (talk | contribs)
m Fixed and updated verbiage
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
If Mario is standing still and the player holds the joystick at least 95 degrees from the direction Mario is facing, instead of beginning to walk immediately, Mario will wait two frames before rotating toward the direction the player is holding until he reaches it, then begin to walk. If the player changes the direction they are holding, Mario will rotate toward that direction instead, and if they let go of the joystick, Mario will rotate toward the most recently held joystick direction.
If Mario is standing still and the player holds the joystick at least 95 degrees from the direction Mario is facing, instead of beginning to walk immediately, Mario will wait two frames before rotating toward the direction the player is holding until he reaches it, then begin to walk. If the player changes the direction they are holding, Mario will rotate toward that direction instead, and if they let go of the joystick, Mario will rotate toward the most recently held joystick direction.


Mario’s angular velocity is given by the following equation:
Mario’s angular velocity while pivoting is given by the following equation:


angular velocity <math>=</math> .1 <math>\times</math> frame of pivot <math>\times</math> (joystick direction <math>-</math> Mario’s rotation)
angular velocity <math>=</math> .1 <math>\times</math> frame of pivot <math>\times</math> (joystick direction <math>-</math> Mario’s rotation)


This means that on the first frame of the pivot, Mario will rotate 1/10th of the way toward the direction the player, rotating counterclockwise or clockwise depending on which way requires less rotation. Pivots cannot last for more than 10 frames because on the tenth frame, Mario rotates all the way to the direction the player is holding. If, at any point, Mario’s direction after the angular velocity is applied is within 5 degrees of the joystick direction, Mario’s rotation will snap to this direction and he will begin walking the next frame.
This means that on the first frame of the pivot, Mario will rotate 1/10th of the way toward the direction the player is holding on the joystick, rotating counterclockwise or clockwise depending on which way requires less rotation. Pivots cannot last for more than 10 frames because on the tenth frame, Mario rotates all the way to the joystick direction. If, at any point, Mario’s direction after the angular velocity is applied is within 5 degrees of the joystick direction, Mario’s rotation will snap to this direction and he will begin walking the next frame.


Pivots can be interrupted by a [[Crouching|crouch]], [[jump]], [[cap throw]], or [[Spinning|spin]].
Pivots can be interrupted by a [[Crouching|crouch]], [[jump]], [[cap throw]], or [[Spinning|spin]].
Retrieved from "https://smo.wiki/Pivot"