added rotation+translation function for 3d models