Add ToMatrix trait and use translation matrix for particles