We examine vortex dynamics and pinning in layered superconductors using thr
ee-dimensional molecular dynamics simulations of magnetically interacting p
ancake vortices. Our model treats the magnetic interactions of the pancakes
exactly, with long-range logarithmic interactions both within and between
planes. At the matching field the Vortices are aligned with the pinning arr
ay. As a function of tilt angle for the pinning arrays a series of commensu
ration effects occur, seen as peaks in the critical current, due to pancake
s finding a favorable alignment.