Compare commits
No commits in common. "master" and "8.0.0" have entirely different histories.
|
@ -26,13 +26,11 @@ namespace MoonTools.Bonk
|
|||
|
||||
public float Right { get { return Max.X; } }
|
||||
public float Left { get { return Min.X; } }
|
||||
|
||||
/// <summary>
|
||||
/// The top of the AABB. Assumes a downward-aligned Y axis, so this value will be smaller than Bottom.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public float Top { get { return Min.Y; } }
|
||||
|
||||
/// <summary>
|
||||
/// The bottom of the AABB. Assumes a downward-aligned Y axis, so this value will be larger than Top.
|
||||
/// </summary>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Version>8.0.1</Version>
|
||||
<Version>8.0.0</Version>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Description>.NET Standard High Performance Collision Detection</Description>
|
||||
<PackageId>MoonTools.Bonk</PackageId>
|
||||
|
@ -14,16 +14,15 @@
|
|||
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://gitea.moonside.games/MoonsideGames/MoonTools.Bonk</PackageProjectUrl>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Platforms>x64</Platforms>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Collections.Immutable" Version="1.7.1" />
|
||||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
|
||||
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.0" />
|
||||
<PackageReference Include="MoonTools.Structs" Version="3.0.1" />
|
||||
<PackageReference Include="System.Collections.Immutable" Version="1.7.0"/>
|
||||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0"/>
|
||||
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.0"/>
|
||||
<PackageReference Include="MoonTools.Structs" Version="3.0.1"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace MoonTools.Bonk
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests if a multishape-transform and shape-transform pair are overlapping.
|
||||
/// Tests if a multishape-transform and shape-transform pair are overlapping.
|
||||
/// Note that this must perform pairwise comparison so the worst-case performance of this method will vary inversely with the amount of shapes in the multishape.
|
||||
/// </summary>
|
||||
/// <param name="multiShape"></param>
|
||||
|
@ -78,7 +78,7 @@ namespace MoonTools.Bonk
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests if a multishape-transform and shape-transform pair are overlapping.
|
||||
/// Tests if a multishape-transform and shape-transform pair are overlapping.
|
||||
/// Note that this must perform pairwise comparison so the worst-case performance of this method will vary inversely with the amount of shapes in the multishape.
|
||||
/// </summary>
|
||||
/// <param name="multiShape"></param>
|
||||
|
@ -96,7 +96,7 @@ namespace MoonTools.Bonk
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests if two multishape-transform pairs are overlapping.
|
||||
/// Tests if two multishape-transform pairs are overlapping.
|
||||
/// Note that this must perform pairwise comparison so the worst-case performance of this method will vary inversely with the amount of shapes in the multishapes.
|
||||
/// </summary>
|
||||
/// <param name="multiShapeA"></param>
|
||||
|
|
|
@ -4,9 +4,6 @@ using MoonTools.Structs;
|
|||
|
||||
namespace MoonTools.Bonk
|
||||
{
|
||||
/// <summary>
|
||||
/// A Point is "that which has not part". All points by themselves are identical.
|
||||
/// </summary>
|
||||
public struct Point : IShape2D, IEquatable<Point>
|
||||
{
|
||||
public AABB AABB { get; }
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace MoonTools.Bonk
|
|||
|
||||
public bool Equals(IShape2D other)
|
||||
{
|
||||
return other is Polygon otherPolygon && Equals(otherPolygon);
|
||||
return (other is Polygon otherPolygon && Equals(otherPolygon));
|
||||
}
|
||||
|
||||
public bool Equals(Polygon other)
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace MoonTools.Bonk
|
|||
{
|
||||
public struct SweepResult<T> where T : IEquatable<T>
|
||||
{
|
||||
public readonly static SweepResult<T> False = new SweepResult<T>();
|
||||
public static SweepResult<T> False = new SweepResult<T>();
|
||||
|
||||
public bool Hit { get; }
|
||||
public Vector2 Motion { get; }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# MoonTools.Bonk
|
||||
|
||||
[![NuGet Badge](https://buildstats.info/nuget/MoonTools.Bonk)](https://www.nuget.org/packages/MoonTools.Bonk/)
|
||||
[![Build Status](https://gitea.drone.moonside.games/api/badges/MoonsideGames/MoonTools.Bonk/status.svg)](https://gitea.drone.moonside.games/MoonsideGames/MoonTools.Bonk)
|
||||
[![Build Status](https://drone.moonside.games/api/badges/MoonsideGames/MoonTools.Bonk/status.svg)](https://drone.moonside.games/MoonsideGames/MoonTools.Bonk)
|
||||
|
||||
Bonk is a fast and modular collision detection system for .NET that is part of the MoonTools suite. It can be used with any .NET-based game engine.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
@ -12,4 +12,4 @@
|
|||
<ItemGroup>
|
||||
<ProjectReference Include="..\Bonk\Bonk.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
Loading…
Reference in New Issue