Use Rigidbody only to move object but not to interact (push away) others.

Hello,
I am trying to make a rocket bullet that uses a Rigidbody to move and a simple Collider. Now I actually only want to detect a collision with for example a cube via code. The collision detection works. But the rocket is also moving the cube because it touches it. So is it possible to not interact with it “physically” but only for collision detection in code?

The rocket itself should use physics (as I want it to be deflected with a forcefield for example) so removing the Rigidbody is not an option. Also the Cube should use physics.

Rigidbody and Colliders ARE physics so I’m not sure what you mean by “use physics”.

If you don’t want a collision response then set the collider to be a trigger.

Thanks for the reply. Yes I am aware that Rigidbody and Colliders are physics. What I mean is that the rocket shoud not be able to apply a force to the cube. The collider from the rocket is already set to “Is Trigger”

EDIT:

I just realized that my rocket had a child that had another collider. After removing that it worked…

1 Like