This commit is contained in:
Hamn 2025-03-14 15:52:10 +09:00 committed by GitHub
parent a62efecf62
commit 11a6c99a53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -319,19 +319,6 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
Vector vecNewVelocity = pPoint->m_vecVelocity + vecGravity + GetAdditionalVelocity( pPoint );
Vector vecNewPos = pPoint->m_vecPosition + flDT * vecNewVelocity;
if ( pVecMins )
{
*pVecMins = vecMins;
}
if ( pVecMaxs )
{
*pVecMaxs = vecMaxs;
}
if ( pVecNewPos )
{
*pVecNewPos = vecNewPos;
}
// Create a ray for point to trace
Ray_t rayWorld;
rayWorld.Init( pPoint->m_vecPosition, vecNewPos, vecMins, vecMaxs );
@ -391,6 +378,19 @@ bool CTFPointManager::UpdatePoint( tf_point_t *pPoint, int nIndex, float flDT, V
pPoint->m_vecPosition = vecNewPos;
if ( pVecMins )
{
*pVecMins = vecMins;
}
if ( pVecMaxs )
{
*pVecMaxs = vecMaxs;
}
if ( pVecNewPos )
{
*pVecNewPos = vecNewPos;
}
return true;
}