Worked on alignToCamera function