linear animation working with rotation

Signed-off-by: ZPaulo <jose.p.s.olive@gmail.com>