0 votes

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)

in Engine by (755 points)

1 Answer

+1 vote

I'd recommend you to use the apply_impulse Method:
https://docs.godotengine.org/en/stable/classes/class_rigidbody.html#class-rigidbody-method-apply-impulse

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

by (1,067 points)

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

I don't know, but maybe you can try to also use the applytorqueimpulse 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."

thank you so much

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.