Movement Formulas/zh: Difference between revisions
Content added Content deleted
(Created page with "以下公式来自于对游戏源代码的分析。") |
(Created page with "注意,由于[https://wanweibaike.net/wiki-%E6%B5%AE%E7%82%B9%E6%95%B0 浮点数]的计算方式,这些公式是'''不精确'''的。< br > 当这些公式用于计算时...") |
||
Line 8: | Line 8: | ||
注意,由于[https://wanweibaike.net/wiki-%E6%B5%AE%E7%82%B9%E6%95%B0 浮点数]的计算方式,这些公式是'''不精确'''的。< br > |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
当这些公式用于计算时,只有前4-6个小数是准确的。< br > |
|||
Note that these formulas are '''not exact''', due to how [https://en.wikipedia.org/wiki/Floating-point_arithmetic floats] are computed. <br> |
|||
为了获得完全准确的模拟,您需要复制源代码。 |
|||
When used for calculations, only the first 4-6 decimals should be considered accurate. <br> |
|||
For a completely accurate simulation, you would need to replicate the source code. |
|||
</div> |
|||
Revision as of 04:38, 22 August 2021
玩家的移动可以通过序列精确计算。
以下公式来自于对游戏源代码的分析。
注意,由于浮点数的计算方式,这些公式是不精确的。< br >
当这些公式用于计算时,只有前4-6个小数是准确的。< br >
为了获得完全准确的模拟,您需要复制源代码。
Note:
Minecraft's coordinate system is oriented differently: 0° points towards "positive Z", and 90° points towards "negative X".
We choose to work in the standard coordinate system to make calculations more intuitive.