Fix translateZ and rotation logic
Merge pull request #25 from fay-jai/refactor

Fix translateZ and rotation logic