Need help for masse shot
Hi i try to implement cue up/down to do masse shot i need help, it works well in pooltool but code is very different. If you have any information or leads, that would be great.
i think solution was here https://github.com/ekiefl/pooltool/blob/main/pooltool/physics/resolve/stick_ball/instantaneous_point/init.py
I believe the physics is already in place for masse shots, so the missing part of the puzzle is to determine the initial spin on the white ball based on cue impact point and angle and a way to aim the height angle of the cue (hold shift and move mouse forward and back?)
i add slider for cue up down 0 to 90 but yea have to calculate the good ball.vel, ball.rvel at cue hit function
unitAtAngle(aim.angle, aim.phi) and cueToSpin(aim.offset, ball.vel, aim.phi)
( aim.phi is theta on pooltool )
yes physics is already in place i see some curve trajectory in my experiment but i don't find the right formula floor should give high friction so high rvel
https://osmane.github.io/billiards/?ruletype=threecushion
Wow that is really amazing, can't believe you got bounce shots and made it all look so good. I think the masse is working but when I hit the right side of the ball with raised cue I expect to ball to curve right but it goes left. I really need to look at the changes you've made as I imagine it took lots of work to get this far.
Thanks! I jumped through hoops trying to explain the spin issue on massé shots to the LLMs, but in the end I had to fix it by hand. The latest deploy is probably newer than what you tested. I had the LLMs write almost all of the code, so maintenance and reviews could be a headache later. I’ve now added an NPC player for single-player and practice modes. Once I wrap up single-player + NPC + camera work + a procedural table texture, it should be more playable. Spent a lot of time on it, but I had fun.
Incredible, I'll put a link to this fork in the readme as it has so much new work in it. I can only imagine the skill to convince the LLM to stay on course thats the new skill set to have.