Hi @xiaoyao,
@yaustar created a video example on how to add a rotation gizmo. You can study that and take it from there to create your own translation gizmo: