Translations:Mouse Movement/30/zh
/* 在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>