Thanks to lots of mathematical lectures on YouTube. They helped me to understand and use the Rodoligues' formula for creating a rotation matrix to move the target position relative to the movement of the fly. My mathematical ability must be improved compared to when I was a high school student who failed a few exams. A new electrophysiology rig is also ready. I am quite excited to start my experiments with this stimuli.