Straining: Difference between revisions

115 bytes added ,  23 March 2019
no edit summary
No edit summary
Line 10: Line 10:




:: <big>Forward Speed = 1.5 * Stick Magnitude * cos(Angle from Forwards) - 0.35 - Drag</big>
:: <big>Forward Speed = 1.5 * Stick Magnitude * cos(Angle from Forwards) ± 0.35 - Drag</big>




Where ''angle from forwards'' is the angle from a vector straight forwards to the joystick direction, and ''stick magnitude'' is the magnitude of the stick being held divided by the maximum value. In other words, if the control stick is pushed all the way, the magnitude is 1.
Where ''angle from forwards'' is the angle from a vector straight forwards to the joystick direction, and ''stick magnitude'' is the magnitude of the stick being held divided by the maximum value. In other words, if the control stick is pushed all the way, the magnitude is 1. The ±.35 always brings the speed towards 0, so minus when speed is positive and plus when the speed is negative.


Drag depends on two things- whether or not Mario is long jumping and what his speed is after the stick magnitude and -0.35 is added to the old speed. The values for drag are-
Drag depends on two things- whether or not Mario is long jumping and what his speed is after the stick magnitude and -0.35 is added to the old speed. The values for drag are-