func fire():
var bullet_exemplar = bullet.instantiate()
bullet_exemplar.position = get_global_position()
bullet_exemplar.rotation_degrees = rotation_degrees
bullet_exemplar.apply_impulse(Vector2(), Vector2(bullet_speed, 0).rotated(rotation))
get_tree().get_root().call_deferred("add_child", bullet_exemplar)
it’s function that should fire bullets, but bullets are not shooting, they’re just spawning and falling, i checked logically and it’s should shoot, because there bullet_exemplar.apply_impulse(Vector2(), Vector2(bullet_speed, 0).rotated(rotation))
Vector2(x;y) receives x=bullet_speed and y=0, it should’nt fall, it should fly! but why