wrong way to check if an object is an instance of a given type
remove -90 degree adjustment (hacky) and add new helper for getting the angle in the XZ plane between two Vector3s