strike the billiard balls. 3d rigidbody

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ramazan

I want to make a 3 ball pool game (3D). Which methods of rigidbody should I use for this?
(I saw the strike technique by chance before, but forgot)

:bust_in_silhouette: Reply From: juppi

I’d recommend you to use the apply_impulse Method:

You can use this to kick the ball to a specific direction.

Thank you so much. I have to hit the ball with a spin.
when I hit the right side of the ball, the ball will go in a straight direction and spin around itself.

ramazan | 2022-03-14 13:55

I don’t know, but maybe you can try to also use the apply_torque_impulse method.

Doc says: “Applies a torque impulse which will be affected by the body mass and shape. This will rotate the body around the impulse vector passed.”

juppi | 2022-03-16 15:58

thank you so much

ramazan | 2022-03-17 12:22