When the ball hits a wall i run this code
func _on_wall_ball_bounce(normalvelocity):
print(velocity,normalvelocity)
velocity = velocity.bounce(normalvelocity)
print(velocity)
The result in the console is
(1, 1)(0.000092, 15)
(-0, -0)
Any help is apreciated