Closed hdmmY closed 6 years ago
At Method in Asset/DanmakU/Runtime/Bounds2D line 115.
Method "Intersects":
public bool Intersects(Bounds2D bounds) { return (Math.Abs(Center.x - bounds.Center.x) < Extents.x + bounds.Size.x) && (Math.Abs(Center.y - bounds.Center.y) < Extents.y + bounds.Extents.y); }
I think the correct condition is
public bool Intersects(Bounds2D bounds) { return (Math.Abs(Center.x - bounds.Center.x) < Extents.x + bounds.Extents.x) && (Math.Abs(Center.y - bounds.Center.y) < Extents.y + bounds.Extents.y); }
In the cases of these small issues, it may make more sense in the future to submit a pull request from your own personal fork rather than propose a change via an issue.
OK, I know. Thanks!
At Method in Asset/DanmakU/Runtime/Bounds2D line 115.
Method "Intersects":
I think the correct condition is