From a4da8001e62857276a89f6d96f4e62e772b4b9fb Mon Sep 17 00:00:00 2001 From: ikpil Date: Tue, 12 Sep 2023 00:03:21 +0900 Subject: [PATCH] typo --- .../Colliders/CapsuleCollider.cs | 4 ++-- .../Colliders/ConvexTrimeshCollider.cs | 8 ++++---- .../Colliders/SphereCollider.cs | 12 ++++++------ .../Colliders/TrimeshCollider.cs | 6 +++--- .../Unity/Astar/GraphMeshDataReader.cs | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/DotRecast.Detour.Dynamic/Colliders/CapsuleCollider.cs b/src/DotRecast.Detour.Dynamic/Colliders/CapsuleCollider.cs index 63b3f88..a342a89 100644 --- a/src/DotRecast.Detour.Dynamic/Colliders/CapsuleCollider.cs +++ b/src/DotRecast.Detour.Dynamic/Colliders/CapsuleCollider.cs @@ -29,8 +29,8 @@ namespace DotRecast.Detour.Dynamic.Colliders private readonly RcVec3f end; private readonly float radius; - public CapsuleCollider(RcVec3f start, RcVec3f end, float radius, int area, float flagMergeThreshold) : - base(area, flagMergeThreshold, Bounds(start, end, radius)) + public CapsuleCollider(RcVec3f start, RcVec3f end, float radius, int area, float flagMergeThreshold) + : base(area, flagMergeThreshold, Bounds(start, end, radius)) { this.start = start; this.end = end; diff --git a/src/DotRecast.Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs b/src/DotRecast.Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs index 8487579..708f3b5 100644 --- a/src/DotRecast.Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs +++ b/src/DotRecast.Detour.Dynamic/Colliders/ConvexTrimeshCollider.cs @@ -28,15 +28,15 @@ namespace DotRecast.Detour.Dynamic.Colliders private readonly float[] vertices; private readonly int[] triangles; - public ConvexTrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) : - base(area, flagMergeThreshold, TrimeshCollider.ComputeBounds(vertices)) + public ConvexTrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) + : base(area, flagMergeThreshold, TrimeshCollider.ComputeBounds(vertices)) { this.vertices = vertices; this.triangles = triangles; } - public ConvexTrimeshCollider(float[] vertices, int[] triangles, float[] bounds, int area, float flagMergeThreshold) : - base(area, flagMergeThreshold, bounds) + public ConvexTrimeshCollider(float[] vertices, int[] triangles, float[] bounds, int area, float flagMergeThreshold) + : base(area, flagMergeThreshold, bounds) { this.vertices = vertices; this.triangles = triangles; diff --git a/src/DotRecast.Detour.Dynamic/Colliders/SphereCollider.cs b/src/DotRecast.Detour.Dynamic/Colliders/SphereCollider.cs index deb2126..ed8a225 100644 --- a/src/DotRecast.Detour.Dynamic/Colliders/SphereCollider.cs +++ b/src/DotRecast.Detour.Dynamic/Colliders/SphereCollider.cs @@ -28,8 +28,8 @@ namespace DotRecast.Detour.Dynamic.Colliders private readonly RcVec3f center; private readonly float radius; - public SphereCollider(RcVec3f center, float radius, int area, float flagMergeThreshold) : - base(area, flagMergeThreshold, Bounds(center, radius)) + public SphereCollider(RcVec3f center, float radius, int area, float flagMergeThreshold) + : base(area, flagMergeThreshold, Bounds(center, radius)) { this.center = center; this.radius = radius; @@ -45,10 +45,10 @@ namespace DotRecast.Detour.Dynamic.Colliders { return new float[] { - center.x - radius, - center.y - radius, - center.z - radius, - center.x + radius, + center.x - radius, + center.y - radius, + center.z - radius, + center.x + radius, center.y + radius, center.z + radius }; diff --git a/src/DotRecast.Detour.Dynamic/Colliders/TrimeshCollider.cs b/src/DotRecast.Detour.Dynamic/Colliders/TrimeshCollider.cs index 7db237c..d54e708 100644 --- a/src/DotRecast.Detour.Dynamic/Colliders/TrimeshCollider.cs +++ b/src/DotRecast.Detour.Dynamic/Colliders/TrimeshCollider.cs @@ -28,8 +28,8 @@ namespace DotRecast.Detour.Dynamic.Colliders private readonly float[] vertices; private readonly int[] triangles; - public TrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) : - base(area, flagMergeThreshold, ComputeBounds(vertices)) + public TrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) + : base(area, flagMergeThreshold, ComputeBounds(vertices)) { this.vertices = vertices; this.triangles = triangles; @@ -67,4 +67,4 @@ namespace DotRecast.Detour.Dynamic.Colliders } } } -} +} \ No newline at end of file diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs index a248092..bec81fa 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs @@ -18,7 +18,7 @@ freely, subject to the following restrictions: using System; using System.IO.Compression; -using System.Numerics; + using DotRecast.Core; namespace DotRecast.Detour.Extras.Unity.Astar