Fixed Gravity to scale correctly with global scale
This commit is contained in:
@ -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)
|
||||
// {
|
||||
|
Reference in New Issue
Block a user