Usually, patellar dislocation occurs when people suddenly change direction or twist the knee or when force is applied to the knee (as may occur in soccer, gymnastics, or baseball when swinging a bat).