white ball problem

hi guys i develop a 8ball multiplayer game but i have problem here when the player have white ball hand
and when he touch the edge of the table and a ball … the ball move this a video of the problem
anyone have idea how can i solve this ?
thanks

I don’t know exactly what you’re trying to do, but I would just disable the Rigidbody component of the ball while aiming/moving around. Personally I don’t think the white ball should be movable, but it is your game! :slight_smile:

no sir the white ball movable when the player have cueball in hand thats mean when the other player do fault so he can move the white ball to a specific position i try to disable the rigibody but dont solved

I can’t see why that wouldn’t solve it, but are you sure you disabled the Rigidbody properly in your script? I think the script is the problem here. What code are you using for aiming and tossing the ball?

i used GameManager.Instance.whiteBall.GetComponent().detectCollisions=false;
i solved the problem but new problem appear now :frowning:
bcz when the white ball dont detect Collisions he can go through the other balls …

Well, the only solution I can think of is to keep the white ball Rigidbody enabled-like before-but make all of the other balls static by removing their Rigidbodys. Re-add them again when you shoot the white ball so they react to physics. I hope this works out for you.