Translations:45 Strafe/30/en

From Minecraft Parkour Wiki

public void updateMotionXZ(float strafe, float forward, float movementFactor) {

   /*
    * This function is responsible for the existence of 45° strafe. The geometry doesn't seem to make sense...
    * Note that:
    *     - Sprint multiplier is contained within "movementFactor"
    *     - Sneak multiplier is contained within "strafe" and "forward"
    * This is likely because Sneaking was implemented long before Sprinting
    */
   float distance = strafe * strafe + forward * forward;