- Edited
Nevermind, I guess.
Nevermind, I guess.
NJL64 maths
https://gamedev.stackexchange.com/questions/7862/is-there-an-algorithm-for-a-pool-game/7901#7901
adapt to gdscript and you have an uncle
NJL64 man that post explicitly step by step explains everything you need.. idk how to help you when youre too lazy to understand and want someone else to solve your problem.
im too lazy to write out the solution... if i get in the mood i maybe try to do that sometime..
maybe look here https://docs.godotengine.org/en/stable/tutorials/physics/using_character_body_2d.html#bouncing-reflecting