[solved] Help with my pool(billiards) game
[solved] Help with my pool(billiards) game
I need to draw the pool cue behind the cue ball, pointing at the mouse position. But I do not know the math to make that happens, can I get some help?
- Attachments
-
- PoolTEST.love
- (41.73 KiB) Downloaded 195 times
Last edited by betobala on Thu May 30, 2024 3:00 am, edited 2 times in total.
Re: Help with my pool(billiards) game
Make .love not .rar
Re: Help with my pool(billiards) game
sorry about that, its my first time making a game.
Re: Help with my pool(billiards) game
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: Help with my pool(billiards) game
Get the angle between the mouse cursor and the ball with math.atan(mouseY - ballY, mouseX - ballX). The pool cue is 180 degrees (1 pi radians) in the other direction.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests