bugfix - dynamic tile rasterize

This commit is contained in:
ikpil 2023-04-18 18:25:05 +09:00
parent f0d255a6c7
commit b6356afd1b
7 changed files with 7 additions and 10 deletions

View File

@ -38,9 +38,6 @@ namespace DotRecast.Detour.Dynamic.Colliders
return _bounds; return _bounds;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public abstract void rasterize(Heightfield hf, Telemetry telemetry);
{
///?
}
} }
} }

View File

@ -60,7 +60,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
return bounds; return bounds;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
RecastFilledVolumeRasterization.rasterizeBox( RecastFilledVolumeRasterization.rasterizeBox(
hf, center, halfEdges, area, (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry); hf, center, halfEdges, area, (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);

View File

@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
this.radius = radius; this.radius = radius;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
RecastFilledVolumeRasterization.rasterizeCapsule(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch), RecastFilledVolumeRasterization.rasterizeCapsule(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
telemetry); telemetry);

View File

@ -40,7 +40,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
this.triangles = triangles; this.triangles = triangles;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
RecastFilledVolumeRasterization.rasterizeConvex(hf, vertices, triangles, area, RecastFilledVolumeRasterization.rasterizeConvex(hf, vertices, triangles, area,
(int)Math.Floor(flagMergeThreshold / hf.ch), telemetry); (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);

View File

@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
this.radius = radius; this.radius = radius;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
RecastFilledVolumeRasterization.rasterizeCylinder(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch), RecastFilledVolumeRasterization.rasterizeCylinder(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
telemetry); telemetry);

View File

@ -34,7 +34,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
this.radius = radius; this.radius = radius;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
RecastFilledVolumeRasterization.rasterizeSphere(hf, center, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch), RecastFilledVolumeRasterization.rasterizeSphere(hf, center, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
telemetry); telemetry);

View File

@ -56,7 +56,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
return bounds; return bounds;
} }
public void rasterize(Heightfield hf, Telemetry telemetry) public override void rasterize(Heightfield hf, Telemetry telemetry)
{ {
for (int i = 0; i < triangles.Length; i += 3) for (int i = 0; i < triangles.Length; i += 3)
{ {