File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1690,10 +1690,9 @@ void AHuman::OnNewMovePath()
1690
1690
// ////////////////////////////////////////////////////////////////////////////////////////
1691
1691
1692
1692
void AHuman::UpdateWalkAngle (AHuman::Layer whichLayer) {
1693
- m_WalkPathOffset.Reset ();
1694
-
1695
1693
if (m_Controller.IsState (BODY_JUMP)) {
1696
1694
m_WalkAngle[whichLayer] = Matrix (c_QuarterPI * GetFlipFactor ());
1695
+ m_WalkPathOffset.Reset ();
1697
1696
} else {
1698
1697
float rayLength = 15 .0F ;
1699
1698
Vector hipPos = m_Pos;
@@ -1736,6 +1735,8 @@ void AHuman::UpdateWalkAngle(AHuman::Layer whichLayer) {
1736
1735
// Adjust our X offset to try to keep our legs under our centre-of-mass
1737
1736
float predictedPosition = ((m_pHead->GetPos ().m_X - m_Pos.m_X ) * 0 .15F ) + m_Vel.m_X ;
1738
1737
m_WalkPathOffset.m_X = predictedPosition;
1738
+ } else {
1739
+ m_WalkPathOffset.Reset ();
1739
1740
}
1740
1741
}
1741
1742
}
You can’t perform that action at this time.
0 commit comments