Questions tagged [billiards]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
685 views

Unity - Billiard balls unrealistic movement

So, I have this problem, even when I apply a small amount of force, the balls seem to get pushed away easily. Here's how they should behave (GIF from 8 ball pool game): And here's how I have it : ...
Haseeb Ali's user avatar
0 votes
1 answer
148 views

Ball's spin speed seems to change erratically after AddForceAtPosition impulse

I'm trying to make a billiard game, and trying to add "spin" (aka English) functionality. The way I'm using to add spin is by using AddForceAtPosition(). Here's the code: ...
Haseeb Ali's user avatar
0 votes
0 answers
280 views

How to create a aimLine in a pool game on unity2d?

I want to design a Aim Line for my player in unity2d. The game is split screen so what I basically want is that whenever its my player turn I want my player which is a ball to cast a raycast like you ...
Nomi's user avatar
  • 33
3 votes
1 answer
711 views

Predicted trajectory becomes less accurate in a side-on collision

In my 2D billiards game, I have it so that when the user clicks and drags with their mouse, a Physics2D.CircleCast is projected from the cueball to wherever the mouse is. If the circle happens to hit ...
Sean Carey's user avatar
1 vote
2 answers
705 views

How can I sync billiard balls in network?

I'm developing a billiard game my problem is I don't know how can I sync balls in network I use forge for networking but feel free to answer photon or unet because I know them. What I tried 1.sending ...
Seyed Morteza Kamali's user avatar
10 votes
1 answer
2k views

How can I Implement spin in billiard game?

I'm not sure that you played billiard or snooker before.if you played you should know about spin. but anyway if you don't know about it you can see it in this video I want to Implement spin like this ...
Seyed Morteza Kamali's user avatar
0 votes
1 answer
285 views

How can the ball moving like billiard after collision with wall?

I tried ball.velocity = Vector3.forward * speed and also *=-1 when the collision is occurred(It only works for straight way. But I want the ball movement be liked in photo. How can i do it? Thank you ...
Michael's user avatar
0 votes
0 answers
191 views

How can I calculate the initial velocity of a cue ball after hitting it with a cue stick?

I'm currently building a billiard game, and I'm faced with the following problem: A cue ball is hit with a stick at an angle equal to Θ. Given that the stick is hit at the exact center of the ball, ...
Saif Taher's user avatar
1 vote
2 answers
2k views

How can I determine the direction of the balls after collision in billiards game?

I'm making a billiard game and I have two questions: How do I find the velocity of two balls when they collide with each other and how do I apply it to both balls? I already know the angles that ...
Ssiro's user avatar
  • 85
1 vote
0 answers
496 views

How to resolve multiple simultaneous ball collisions in a pool game?

I'm trying to simulate a break shot in billiards (1 ball hits a pyramid of 15 balls). The formula for 2D ball collision works correctly in my game. But when it is applied to the break-shot, the result ...
android_611's user avatar
1 vote
1 answer
228 views

Basic billiards game: Can't detect collision between cuestick and cueball

I have a basic Unity project on GitHub. Basically, I have a Cuestick that aims and shoots using the mouse. You can rotate around the cueball with your mouse and when you're ready to shoot, you can ...
Kurt Mueller's user avatar
4 votes
3 answers
9k views

What physics settings do I need to apply to make the pool game realistic?

I want to create a pool game using Unity. I added the spheres as playballs and cubes as the walls. I added a rigidbody to all objects and Im able to do some basic collisions like in a pool game. My ...
mirzahat's user avatar
  • 277
2 votes
2 answers
1k views

How do I implement friction in a billiards game?

I'm having trouble implementing friction in a billiards game. Currently, the ball only slows on collision with the edges, but I also want some friction with the background. How can I implement ...
Zechy's user avatar
  • 67
6 votes
1 answer
5k views

Predicting physics/trajectory for pool/billiards games

I'm thinking of making a quick proof of concept of a billiard-style game mechanic, where the player has perfect information of what is about to happen. Here's a good example: I'm only mildly ...
joon's user avatar
  • 553
3 votes
0 answers
310 views

How can I make bodies that do not stick to the wall in Bullet Physics? [duplicate]

Possible Duplicate: Physics engine recommendation which can simulate pool game correctly? I made a Billiards scene with Bullet Physics, but I've got a problem. When the ball is slowing down near ...
Eonil's user avatar
  • 959
0 votes
1 answer
1k views

Physic engine for snooker/billard game [duplicate]

Possible Duplicate: Is there an algorithm for a pool game? I think most billard/snooker games have a lot of problems with their physic engines. They are far away from realistic and you can't ...
Marc Bury's user avatar
  • 663
15 votes
3 answers
23k views

Is there an algorithm for a pool game?

I am looking for algorithm to calculate direction and speed of balls in a pool game. I am sure there has to be some type of open source code for this since pool games are some of the oldest computer ...
user avatar