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曲线因子,导致玩家在速度过快时减速或者停下。在加速时很容易看见这些现象。