motion in 2d and 3d 4003891