RigidBodies and Colliders

First off let me apologize, because I know that this post is going to be repetitive for many, but for the life of me I am confused with collisions between rigidBodies and just regular colliders.

My scenario.

A ball that has a rigidBody on it.

A paddle that has a rigidBody on it that IsKinematic, because I don’t want physics I just want collisions, and is controlled on the horizontal axis only with user input.

Two walls that have simple Box Colliders.

The Ball interacts with the walls and the paddle perfectly without any extra scripting.

The paddle however does not recognize a collision with the walls. Passes right through them.

I realized that I was doing Tansform.Translate which won’t allow collisions and tried to use AddForce(), that of course doesn’t work with IsKinematic checked.

So I’ve exhausted all options on what to check for and any help will be much appreciated on

How I can get the paddle to see the collisions with the walls, and what is the proper way of moving the paddle? And Do I even need a rigidBody on the paddle?

Oh and Hi, I’m Ryan hopefully will be around for some time!

probably don’t need a rigidbody, only time want a rigidbody to use physics or apply gravity. without the rigidbody you should be able to use Simple Move with just a collider.

Mm SimpleMove isn’t getting inherited from Collider it’s a function for CharacterController.

And that seems like a lot of overhead to add to a simple paddle.

Thanks for the response though!

You can use full rigidbody physics to control an object, but limit its movement using a configurable joint. If you set all the joint’s angular X/Y/Z motion properties to Locked and the Y and Z motion to Locked, the paddle will only move along the X axis (can’t drift or rotate out of position, etc). You can also set the joint’s X motion to Limited and set the linear limit to restrict its movement. However, you may find that collisions with the wall are enough to get the effect you want.

That works, had to set the mass of the paddle to like 10000 so when the ball hit, it wouldn’t send it flying in the opposite direction.