how do i get a rigidbody sphere to bounce off walls correctly?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By noterena

i am trying to make a minigolf game but whenever i hit the ball into a wall in a straight line it bounces off in a different direction, is there any way to fix this?

enter image description here

It should just work. Is the centre of the ball actually in the centre (i.e. 0, 0, 0)? This is where Godot places the centre of gravity, so if it’s not, it can least to strange results. Or are you applying any more force on the ball after the first hit?

SteveSmith | 2022-04-26 20:32