Skip to main content
Clarifying question a little.
Source Link
DMGregory
  • 136.3k
  • 22
  • 247
  • 373

Unity collider and rigidbody allow touch but not pushing Nestling into contact with a group of physics objects without exerting forces on them

I'm making a pool game, and would like the circle (imaginary) to be in contact with the table and balls, and to fit perfectly as a ball would. 

Now I thoughthought I would use rigidbodyRigidbody and lerp the position of the circle to the rayraycast hit, however as it has aand its collider it would fit well, theforce it into a fitting position.

The problem I encountered is that since it has a collider, it also pushes the balls, which I do not want.

So my question is, how do I make a collider (no rigidbody) to be able to touchan object act like it's touching & blocked by other gameobjectsGameObjects with colliderColliders and WITH rigidbodyRigidbodies, but not to pushwithout pushing them?

enter image description here

Unity collider and rigidbody allow touch but not pushing

I'm making a pool game, and would like the circle (imaginary) to be in contact with the table and balls, and to fit perfectly as a ball would. Now I though I would use rigidbody and lerp the position of the circle to the ray hit, however as it has a collider it would fit well, the problem I encountered is that since it has a collider it pushes the balls which I do not want.

So my question is, how do I make a collider (no rigidbody) to be able to touch other gameobjects with collider and WITH rigidbody, but not to push them?

enter image description here

Nestling into contact with a group of physics objects without exerting forces on them

I'm making a pool game, and would like the circle (imaginary) to be in contact with the table and balls, and to fit perfectly as a ball would. 

Now I thought I would use Rigidbody and lerp the position of the circle to the raycast hit, and its collider it would force it into a fitting position.

The problem I encountered is that since it has a collider, it also pushes the balls, which I do not want.

So my question is, how do I make an object act like it's touching & blocked by other GameObjects with Colliders and Rigidbodies, without pushing them?

enter image description here

Source Link
John Smith
  • 1.3k
  • 1
  • 20
  • 41

Unity collider and rigidbody allow touch but not pushing

I'm making a pool game, and would like the circle (imaginary) to be in contact with the table and balls, and to fit perfectly as a ball would. Now I though I would use rigidbody and lerp the position of the circle to the ray hit, however as it has a collider it would fit well, the problem I encountered is that since it has a collider it pushes the balls which I do not want.

So my question is, how do I make a collider (no rigidbody) to be able to touch other gameobjects with collider and WITH rigidbody, but not to push them?

enter image description here