Translations:Sneaking/16/zh: Difference between revisions
Content added Content deleted
(Created page with "//check for furthest ground under player in the X axis (from initial position) while(dX != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,0)).isEmpty()) { if (dX < increment && dX >= -increment) dX = 0.0D; else if (dX > 0.0D) dX -= increment; else dX += increment;") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
//(从初始位置开始)检查 X 轴方向上玩家下方最远处的地面 |
|||
//check for furthest ground under player in the X axis (from initial position) |
|||
while(dX != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,0)).isEmpty()) |
while(dX != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,0)).isEmpty()) |
||
{ |
{ |
Latest revision as of 07:37, 25 June 2022
//(从初始位置开始)检查 X 轴方向上玩家下方最远处的地面
while(dX != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,0)).isEmpty()) { if (dX < increment && dX >= -increment) dX = 0.0D; else if (dX > 0.0D) dX -= increment; else dX += increment;