Is it possible that two rigidbody collides and dont change their directions,as if they havent collided

If you don’t want them to change and simply want to detect a collision, set them to be Triggers.

collider.isTrigger = true;

or in the Inspector on the Collider Component