An open source Danmaku development kit for Unity3D.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix #33: Use extents instead of size

authored by

James Liu and committed by
GitHub
f6837d48 58018431

+2 -2
+2 -2
Assets/DanmakU/Runtime/Bounds2D.cs
··· 113 113 /// <returns>true if there is an intersection between bounds, false otherwise.</returns> 114 114 [MethodImpl(MethodImplOptions.AggressiveInlining)] 115 115 public bool Intersects(Bounds2D bounds) { 116 - return (Math.Abs(Center.x - bounds.Center.x) < Extents.x + bounds.Size.x) && 116 + return (Math.Abs(Center.x - bounds.Center.x) < Extents.x + bounds.Extents.x) && 117 117 (Math.Abs(Center.y - bounds.Center.y) < Extents.y + bounds.Extents.y); 118 118 } 119 119 ··· 157 157 158 158 } 159 159 160 - } 160 + }