how to find direction of two rigid bodies after collide them with each other

Basically, i want to design a cricket game where i have to decide the next moving position of a ball after hitting with bat. i m confused that whether unity can move the ball after collision itself or i have to find the new direction for the ball in script…
kindly help me if anyone can

regards: Shozii

Make both objects with rigidbodies and colliders. Then they will behave like real world physics and no need for coding. Rigidbodies should be set to NON-kinematic and colliders should set to NON-triggers.