change dot vector check to be greater than 0

This commit is contained in:
Chris Cromer 2022-07-27 00:03:59 -04:00
parent f9e70eae01
commit 18a7cac068
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -142,7 +142,7 @@ void Player::_physics_process(float delta)
}*/ }*/
velocity.y = -get_bounce_force(); velocity.y = -get_bounce_force();
} }
else if (collider->is_in_group("enemy") && (collider->is_in_group("rideable") && Vector2::DOWN.dot(collision->get_normal()) > 0.1)) else if (collider->is_in_group("enemy") && (collider->is_in_group("rideable") && Vector2::DOWN.dot(collision->get_normal()) > 0))
{ {
_on_player_touched(); _on_player_touched();
} }