3D movement

Hi, does anyone have any code for 3D movement through space using quaternions? It needs to allow movement on all 3 planes. I’d be really gratefull for any help.

Thanks

Jamie