Translations:Mouse Movement/30/en

From Minecraft Parkour Wiki
Revision as of 11:17, 1 October 2021 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/* In Entity.java */ public void rotateEntity(float dX, float dY) {

   this.rotationYaw = this.rotationYaw + dX*0.15);
   this.rotationPitch = this.rotationPitch - dY*0.15;
   this.rotationPitch = MathHelper.clamp(this.rotationPitch, -90.0, 90.0);

} </syntaxhighlight>