Movement Formulas/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
(Created page with "以下公式来自于对游戏源代码的分析。")
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
[[File:0t sprintjump graph.png|thumb|500x500px|Movement formulas applied to a 3b jump.]]
[[File:0t sprintjump graph zh.png|thumb|500x500px|将运动公式应用于 3 远。]]
玩家的移动可以通过[https://wanweibaike.net/wiki-%E5%BA%8F%E5%88%97 序列]精确计算。
通过[https://en.wikipedia.org/wiki/Sequence 序列]可以精确计算玩家的移动


下公式来于对游戏源码的分析。
面的公式来于对游戏源码的分析。








注意,由于[https://en.wikipedia.org/wiki/Floating-point_arithmetic 浮点数]的计算方式,这些公式是'''不精确'''的。<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>




* [[Special:MyLanguage/Vertical Movement Formulas|'''垂直运动''' (递归公式)]]
<div lang="en" dir="ltr" class="mw-content-ltr">
* [[Special:MyLanguage/Vertical Movement Formulas|'''Vertical Movement''' (recursive formulas)]]
* [[Special:MyLanguage/Horizontal Movement Formulas|'''水平运动''' (递归公式)]]
* [[Special:MyLanguage/Horizontal Movement Formulas|'''Horizontal Movement''' (recursive formulas)]]
* [[Special:MyLanguage/Nonrecursive Movement Formulas|'''非递归公式''']]
* [[Special:MyLanguage/Nonrecursive Movement Formulas|'''Non-recursive formulas''']]
</div>






'''注意:''' <br>
<div lang="en" dir="ltr" class="mw-content-ltr">
Minecraft 的坐标系统在方向上与标准坐标系不尽相同:0° 指向'''正 Z''',90° 指向'''负 X'''。<br>
'''Note:''' <br>
为使计算更加直观,我们选择使用标准坐标系进行计算。
Minecraft's coordinate system is oriented differently: 0° points towards "positive Z", and 90° points towards "negative X". <br>
We choose to work in the standard coordinate system to make calculations more intuitive.
</div>

Latest revision as of 04:47, 29 June 2022

Other languages:
将运动公式应用于 3 远。

通过序列可以精确地计算玩家的移动。

下面的公式来源于对游戏源码的分析。



注意,由于浮点数的计算方式,这些公式是不精确的。
计算时,只有前 4-6 位小数是准确的。
如果需要完全准确地模拟运动,则需要复制源代码。



注意:
Minecraft 的坐标系统在方向上与标准坐标系不尽相同:0° 指向正 Z,90° 指向负 X
为使计算更加直观,我们选择使用标准坐标系进行计算。