File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1996,8 +1996,6 @@ float CCar::GetLerpValue() const
1996
1996
1997
1997
VECTOR_NOPAD CCar::GetInterpolatedCogPosition () const
1998
1998
{
1999
-
2000
-
2001
1999
return ToFixedVector (lerp (FromFixedVector (m_prevCogPosition), FromFixedVector (GetCogPosition ()), GetLerpValue ()));
2002
2000
}
2003
2001
@@ -2064,6 +2062,8 @@ void CCar::SetPosition(const VECTOR_NOPAD& value)
2064
2062
m_hd.where .t [0 ] = value.vx ;
2065
2063
m_hd.where .t [1 ] = value.vy ;
2066
2064
m_hd.where .t [2 ] = value.vz ;
2065
+
2066
+ ResetInterpolation ();
2067
2067
}
2068
2068
2069
2069
int CCar::GetDirection () const
@@ -2075,6 +2075,8 @@ void CCar::SetDirection(const int& newDir)
2075
2075
{
2076
2076
m_hd.direction = newDir;
2077
2077
TempBuildHandlingMatrix (0 );
2078
+
2079
+ ResetInterpolation ();
2078
2080
}
2079
2081
2080
2082
const VECTOR_NOPAD& CCar::GetLinearVelocity () const
You can’t perform that action at this time.
0 commit comments