displacement in align in local coordinates
updated demo3
fixed displacement

was applied before rotation, which scrambled it up in some cases.