forked from bit/DotRecastNetSim
typo
This commit is contained in:
parent
c08f5f530f
commit
a4da8001e6
|
@ -29,8 +29,8 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
private readonly RcVec3f end;
|
private readonly RcVec3f end;
|
||||||
private readonly float radius;
|
private readonly float radius;
|
||||||
|
|
||||||
public CapsuleCollider(RcVec3f start, RcVec3f end, float radius, int area, float flagMergeThreshold) :
|
public CapsuleCollider(RcVec3f start, RcVec3f end, float radius, int area, float flagMergeThreshold)
|
||||||
base(area, flagMergeThreshold, Bounds(start, end, radius))
|
: base(area, flagMergeThreshold, Bounds(start, end, radius))
|
||||||
{
|
{
|
||||||
this.start = start;
|
this.start = start;
|
||||||
this.end = end;
|
this.end = end;
|
||||||
|
|
|
@ -28,15 +28,15 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
private readonly float[] vertices;
|
private readonly float[] vertices;
|
||||||
private readonly int[] triangles;
|
private readonly int[] triangles;
|
||||||
|
|
||||||
public ConvexTrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) :
|
public ConvexTrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold)
|
||||||
base(area, flagMergeThreshold, TrimeshCollider.ComputeBounds(vertices))
|
: base(area, flagMergeThreshold, TrimeshCollider.ComputeBounds(vertices))
|
||||||
{
|
{
|
||||||
this.vertices = vertices;
|
this.vertices = vertices;
|
||||||
this.triangles = triangles;
|
this.triangles = triangles;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ConvexTrimeshCollider(float[] vertices, int[] triangles, float[] bounds, int area, float flagMergeThreshold) :
|
public ConvexTrimeshCollider(float[] vertices, int[] triangles, float[] bounds, int area, float flagMergeThreshold)
|
||||||
base(area, flagMergeThreshold, bounds)
|
: base(area, flagMergeThreshold, bounds)
|
||||||
{
|
{
|
||||||
this.vertices = vertices;
|
this.vertices = vertices;
|
||||||
this.triangles = triangles;
|
this.triangles = triangles;
|
||||||
|
|
|
@ -28,8 +28,8 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
private readonly RcVec3f center;
|
private readonly RcVec3f center;
|
||||||
private readonly float radius;
|
private readonly float radius;
|
||||||
|
|
||||||
public SphereCollider(RcVec3f center, float radius, int area, float flagMergeThreshold) :
|
public SphereCollider(RcVec3f center, float radius, int area, float flagMergeThreshold)
|
||||||
base(area, flagMergeThreshold, Bounds(center, radius))
|
: base(area, flagMergeThreshold, Bounds(center, radius))
|
||||||
{
|
{
|
||||||
this.center = center;
|
this.center = center;
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
|
|
|
@ -28,8 +28,8 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
private readonly float[] vertices;
|
private readonly float[] vertices;
|
||||||
private readonly int[] triangles;
|
private readonly int[] triangles;
|
||||||
|
|
||||||
public TrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold) :
|
public TrimeshCollider(float[] vertices, int[] triangles, int area, float flagMergeThreshold)
|
||||||
base(area, flagMergeThreshold, ComputeBounds(vertices))
|
: base(area, flagMergeThreshold, ComputeBounds(vertices))
|
||||||
{
|
{
|
||||||
this.vertices = vertices;
|
this.vertices = vertices;
|
||||||
this.triangles = triangles;
|
this.triangles = triangles;
|
||||||
|
|
|
@ -18,7 +18,7 @@ freely, subject to the following restrictions:
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Numerics;
|
|
||||||
using DotRecast.Core;
|
using DotRecast.Core;
|
||||||
|
|
||||||
namespace DotRecast.Detour.Extras.Unity.Astar
|
namespace DotRecast.Detour.Extras.Unity.Astar
|
||||||
|
|
Loading…
Reference in New Issue