Translations:Movement/15/zh

From DDraceNetwork
Revision as of 03:50, 28 July 2023 by Darkh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

src/game/gamecore.cpp (在利用速度計算玩家下一個位置前有如下代碼):

if(length(m_Vel) > 6000)
    m_Vel = normalize(m_Vel) * 6000;

其中內嵌了一個歸一化函數重新計算了速度帶來的影響,是豎直速度的瓶頸由來。而水平方向上則有一個ramp曲線因子,導致玩家在速度過快時減速或者停下。在加速時很容易看見這些現象。