Translations:45 Strafe/32/zh: Difference between revisions
Content added Content deleted
(Created page with "distance = movementFactor / distance; strafe = strafe * distance; forward = forward * distance; float sinYaw = MathHelper.sin(this.rotationYaw * Math.P...") |
(No difference)
|
Latest revision as of 13:09, 26 August 2021
distance = movementFactor / distance;
strafe = strafe * distance; forward = forward * distance; float sinYaw = MathHelper.sin(this.rotationYaw * Math.PI / 180.0F); float cosYaw = MathHelper.cos(this.rotationYaw * Math.PI / 180.0F); this.motionX += strafe * cosYaw - forward * sinYaw; this.motionZ += forward * cosYaw + strafe * sinYaw; }
} </syntaxhighlight>