CCharacter::DDRacePostCoreTick()
// handle Anti-Skip tiles
std::vector<int> vIndices = Collision()->GetMapIndices(m_PrevPos, m_Pos);
if(!vIndices.empty())
for(int Index : vIndices)
HandleTiles(Index);
else
{
HandleTiles(CurrentIndex);
}
(edited)CCharacter::DDRacePostCoreTick()
// handle Anti-Skip tiles
std::vector<int> vIndices = Collision()->GetMapIndices(m_PrevPos, m_Pos);
if(!vIndices.empty())
for(int Index : vIndices)
HandleTiles(Index);
else
{
HandleTiles(CurrentIndex);
}
(edited)CCharacter::DDRacePostCoreTick()
somehow// neither of the tests got a collision.
// this is a real _corner case_!
if(Hits == 0)
{
if(pGrounded && ElasticityY > 0 && Vel.y > 0)
*pGrounded = true;
NewPos.y = Pos.y;
Vel.y *= -ElasticityY;
NewPos.x = Pos.x;
Vel.x *= -ElasticityX;
}