Fixed Gravity to scale correctly with global scale

This commit is contained in:
2021-11-05 21:54:18 -04:00
parent bd0c49b3ae
commit 0cc31be0c7
3 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ void Game::update()
// Gravity
if (gravityOnPlayer){
player.getComponent<TransformComponent>().position.y += 10;
player.getComponent<TransformComponent>().position.y += 3*gScale;
}
// for(auto& p: projectiles)
// {