Got the check_Distance function working since I couldn't seem to find a builtin function for babylonjs