This commit is contained in:
CortexCore
2023-10-24 23:38:22 +08:00
parent 2c4710bc5d
commit bd40165ade
152 changed files with 3681 additions and 1531 deletions

View File

@@ -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;
}