Trajectories of a Bohmian particle confined in time-dependent cylindrical and spherical traps are computed for both contracting and expanding boxes. Quantum effective force is considered in arbitrary directions. It is seen that in contrast to the problem of a particle in an infinite rectangular box with one wall in motion, if particle initially is in an energy eigenstate of a tiny box the force is zero in all directions. Trajectories of a two-body system confined in the spherical trap are also computed for different statistics. Computations show that there are situations for which distance between bosons is greater than the fermions. However, results of average separation of the particles confirm our expectation about the statistics.