animation transform matrix calculation tweak