Exact quantum motion of a particle trapped by oscillating fields