Creating animation in 3D space