modify return type of getDirection and getDirectionInWorld