0 votes

I'm new to Godot and I have a question.

I'm trying on my project to make a simple PingPong game. I'm using KinematicBody2D to make the paddle and RigidBody2D to make the ball. When I run it, the ball sometimes push the paddle up or down.

I'm searched the problem on google and found some solutions but those are from Godot 2 and I don't know that there is any change in Godot 3.

Hope you guys can help me.

in Engine by (65 points)
reshown by

1 Answer

+1 vote

Hi,

I'm also new at Godot, but I think maybe you would want to use an StaticBody2D for the paddle instead of a KinematicBody2D.

As far a s I know, that way the physics engine won't move your paddle. You can have a look at the documentation here: docs.godotengine.org/en/3.0/tutorials/physics/physics_introduction.html

I hope it helps :)

by (20 points)
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 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 webmaster@godotengine.org with your username.