This commit is contained in:
ikpil 2023-09-12 00:03:21 +09:00
parent c08f5f530f
commit a4da8001e6
5 changed files with 16 additions and 16 deletions

View File

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

View File

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

View File

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

View File

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

View File

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