1
This commit is contained in:
@@ -27,7 +27,10 @@ namespace BITKit
|
||||
break;
|
||||
}
|
||||
vector3 = collider.ClosestPoint(root.position + Vector3.up);
|
||||
return vector3.y == collider.bounds.center.y + collider.bounds.extents.y;
|
||||
var top = collider.bounds.center + collider.bounds.extents;
|
||||
return Mathf.Abs(vector3.y - top.y) <0.16f;
|
||||
//return vector3.y >= collider.bounds.center.y + collider.bounds.extents.y;
|
||||
//return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user