Horizontal Movement Formulas/ja: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
No edit summary
No edit summary
Line 52: Line 52:
:'''ジャンプの速度''':
:'''ジャンプの速度''':


::<math>V_{H,t} = \underset{慣 性}{\underbrace{\underset{ }{V_{H,t-1} \times S_{t-1} \times 0.91 }}} ~ + ~ \underset{加 速 度}{\underbrace{0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3}}} + \underset{ダ ッ シ ュ ジ ャ ン プ ブ ー ス ト}{\underbrace{\begin{Bmatrix}0.2 & \text{ダ ッ シ ュ }\\ 0.0 & \text{そ れ 以 外}\end{Bmatrix} }}</math>
<div class="mw-translate-fuzzy">
::<math>V_{H,t} = \underset{\text{慣 性}}{\underbrace{\underset{ }{V_{H,t-1} \times S_{t-1} \times 0.91 }}} ~ + ~ \underset{\text{加 速 度}}{\underbrace{0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3}}} + \underset{\text{ダ ッ シ ュ ジ ャ ン プ ブ ー ス ト}{\underbrace{\begin{Bmatrix}0.2 & \text{ダ ッ シ ュ }\\ 0.0 & \text{そ れ 以 外}\end{Bmatrix} }}</math>
</div>





Revision as of 09:40, 26 December 2023

Other languages:

ゲーム内では、以下の3ステップが毎tick実行される:

  1. プレイヤーの速度に加速度を加える。
  2. プレイヤーを動かす(新しい位置 = 元の位置 + 速度)。
  3. 抗力の再現のため、プレイヤーの速度を落とす。

公式をより読みやすくするため、各種倍率の紹介から始める。


倍率

移動方法の倍率45°Strafeを参照)



エフェクトの倍率ステータス効果を参照)



滑りやすさの倍率滑りやすさを参照)



直線の公式

以下の簡易式は、直線的な動き(移動方向の変化なし)にのみ適用される。 この条件は限定的に思えるかもしれないが、シンプルなジャンプや助走の分析に非常に有用である。 角度を含めた公式への拡張は、後の見出しで行う。


定義:
  • はプレイヤーの初速(デフォルト = 0)。
  • tick目でのプレイヤーの速度。


地面での速度:


ジャンプの速度:
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V_{H,t} = \underset{慣 性}{\underbrace{\underset{ }{V_{H,t-1} \times S_{t-1} \times 0.91 }}} ~ + ~ \underset{加 速 度}{\underbrace{0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3}}} + \underset{ダ ッ シ ュ ジ ャ ン プ ブ ー ス ト}{\underbrace{\begin{Bmatrix}0.2 & \text{ダ ッ シ ュ }\\ 0.0 & \text{そ れ 以 外}\end{Bmatrix} }}}


空中での速度:
Failed to parse (syntax error): {\displaystyle V_{H,t} = \underset{\textrm{慣 性}}{\underbrace{\underset{ }{V_{H,t-1} \times S_{t-1} \times 0.91 }}} \: + \: \underset{\textrm{加 速 度}}{\underbrace{\underset{ }{0.02 \times M_{t}}}} }


完全な公式

新しい変数を2つ導入する:

  • (Direction)、プレイヤーの動いている角度、単位は度(キー入力と回転角度によって決まる)。
  • (Facing)、プレイヤーの向いている角度、単位は度(回転角度のみによって決まる)。


実際には、significant angleの数が限られているため、角度はそれほど単純ではない(角度を参照)。

簡略化のため、この事実は無視する。


定義:
  • はプレイヤーの初速に対応する。
  • tick目でのプレイヤーの速度に対応する。

地面での速度:
Failed to parse (syntax error): {\displaystyle V\displaystyle _{X,t} = \underset{ }{V\displaystyle _{X,t-1} \times S_{t-1} \times 0.91 } \: + \: 0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3} \times \sin (D_{t}) }
Failed to parse (syntax error): {\displaystyle V\displaystyle _{Z,t} = \underset{\textrm{慣 性}}{\underbrace{\underset{ }{V\displaystyle _{Z,t-1} \times S_{t-1} \times 0.91 }}} \: + \: \underset{\textrm{加 速 度}}{\underbrace{0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3}}} \times \cos (D_{t}) }
ジャンプの速度:
Failed to parse (syntax error): {\displaystyle V\displaystyle _{X,t} = \underset{ }{V\displaystyle _{X,t-1} \times S_{t-1} \times 0.91 } \: + \: 0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3} \times \sin (D_{t}) + \begin{Bmatrix} 0.2 & \textrm{ダ ッ シ ュ}\\ 0.0 & \textrm{そ れ 以 外}\end{Bmatrix} \times \sin (F_{t}) }
Failed to parse (syntax error): {\displaystyle V\displaystyle _{Z,t} = \underset{\textrm{慣 性}}{\underbrace{\underset{ }{V\displaystyle _{Z,t-1} \times S_{t-1} \times 0.91 }}} \: + \: \underset{\textrm{加 速 度}}{\underbrace{0.1 \times M_{t} \times E_{t} \times \left (\frac{0.6}{S_{t}} \right )^{3}}} \times \cos (D_{t}) + \underset{\textrm{ダ ッ シ ュ ジ ャ ン プ ブ ー ス ト}}{\underbrace{\begin{Bmatrix} 0.2 & \textrm{ダ ッ シ ュ}\\ 0.0 & \textrm{そ れ 以 外}\end{Bmatrix} \times \cos (F_{t})}} }
空中での速度:
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V\displaystyle _{X,t} = \underset{ }{V\displaystyle _{X,t-1} \times S_{t-1} \times 0.91 } \: + \: 0.02 \times M_{t} \times \sin (D_{t}) }
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle V\displaystyle _{Z,t} = \underset{\textrm{慣 性}}{\underbrace{\underset{ }{V\displaystyle _{Z,t-1} \times S_{t-1} \times 0.91 }}} \: + \: \underset{\textrm{加 速 度}}{\underbrace{\underset{}{0.02 \times M_{t}}}} \times \cos (D_{t}) }


停止条件

水平方向の速度は、プレイヤーが壁に接触するか、その速度が無視できるほど小さいと判断された場合、0に設定される。


壁の衝突判定:
プレイヤーがX方向の壁と接触すると、慣性がキャンセルされ、に含まれるのは加速度のみになる。
プレイヤーがZ方向の壁と接触すると、慣性がキャンセルされ、に含まれるのは加速度のみになる。
どちらの場合も、ダッシュは途切れる。


無視できる速度のしきい値:
の場合、慣性がキャンセルされ、加速度のみが残る。
の場合、慣性がキャンセルされ、加速度のみが残る。
1.9以降は、このしきい値は0.003となる。


ソースコード

[...]